[webkit-changes] [WebKit/WebKit] 8e6de7: Update HTMLFastPathParser::scanTagName() to return...

Chris Dumez noreply at github.com
Sat Apr 1 13:25:55 PDT 2023


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

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

  Log Message:
  -----------
  Update HTMLFastPathParser::scanTagName() to return an ElementName
https://bugs.webkit.org/show_bug.cgi?id=254857

Reviewed by Darin Adler.

Update HTMLFastPathParser::scanTagName() to return an ElementName enum instead
of a Span<Character>. This simplifies the logic in the HTML fast parser and is
slightly more efficient.

* Source/WebCore/dom/make_names.pl:
(printElementNameHeaderFile):
(printElementNameCppFile):
* Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp:
(WebCore::HTMLFastPathParser::scanTagName):
(WebCore::HTMLFastPathParser::parseSpecificElements):
(WebCore::HTMLFastPathParser::parseElement):
(WebCore::onlyContainsLowercaseASCIILetters): Deleted.
(WebCore::tagNameHash): Deleted.

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




More information about the webkit-changes mailing list