[webkit-changes] [WebKit/WebKit] 7f3a0f: Update HTMLFastPathParser::scanAttributeValue() to...
Chris Dumez
noreply at github.com
Tue Apr 4 10:06:19 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7f3a0f6e0eff7f6f2e16f658d3e7cfe21b1f989a
https://github.com/WebKit/WebKit/commit/7f3a0f6e0eff7f6f2e16f658d3e7cfe21b1f989a
Author: Chris Dumez <cdumez at apple.com>
Date: 2023-04-04 (Tue, 04 Apr 2023)
Changed paths:
M Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp
Log Message:
-----------
Update HTMLFastPathParser::scanAttributeValue() to return an AtomString
https://bugs.webkit.org/show_bug.cgi?id=254962
Reviewed by Darin Adler.
Update HTMLFastPathParser::scanAttributeValue() to return an AtomString instead of a
`std::variant<Span<const LChar>, Span<const UChar>>`. This simplifies the code a bit
and is slightly more efficient.
* Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp:
(WebCore::HTMLFastPathParser::scanAttributeValue):
(WebCore::HTMLFastPathParser::scanEscapedAttributeValue):
(WebCore::HTMLFastPathParser::processAttribute):
(WebCore::HTMLFastPathParser::parseAttributes):
Canonical link: https://commits.webkit.org/262580@main
More information about the webkit-changes
mailing list