[webkit-changes] [WebKit/WebKit] e947c7: Update HTMLFastPathParser::scanText() to return a ...

Chris Dumez noreply at github.com
Mon Apr 3 22:57:07 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e947c7c9fe38b1d388608b24ed2c753ba25fbd76
      https://github.com/WebKit/WebKit/commit/e947c7c9fe38b1d388608b24ed2c753ba25fbd76
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-04-03 (Mon, 03 Apr 2023)

  Changed paths:
    M Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp

  Log Message:
  -----------
  Update HTMLFastPathParser::scanText() to return a String
https://bugs.webkit.org/show_bug.cgi?id=254963

Reviewed by Ryosuke Niwa.

Update HTMLFastPathParser::scanText() to return a String instead of a
`std::variant<Span<const LChar>, Span<const UChar>>`. This simplifies
the code a bit.

* Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp:
(WebCore::HTMLFastPathParser::scanText):
(WebCore::HTMLFastPathParser::scanEscapedText):
(WebCore::HTMLFastPathParser::parseChildren):

Canonical link: https://commits.webkit.org/262564@main




More information about the webkit-changes mailing list