[webkit-changes] [WebKit/WebKit] 2b9b39: Stop using goto in HTMLDocumentParserFastPath.cpp

Chris Dumez noreply at github.com
Tue Apr 11 15:31:23 PDT 2023


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

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

  Log Message:
  -----------
  Stop using goto in HTMLDocumentParserFastPath.cpp
https://bugs.webkit.org/show_bug.cgi?id=255292

Reviewed by Darin Adler.

Stop using goto in HTMLDocumentParserFastPath.cpp. Also use the ElementNames
namespace instead of the ElementName enumeration directly as I was told this
is the preferred way (the enumeration values have underscores in their name,
which doesn't look as good).

* Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp:
(WebCore::HTMLFastPathParser::parse):
(WebCore::HTMLFastPathParser::parseElement):

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




More information about the webkit-changes mailing list