[webkit-changes] [WebKit/WebKit] 49be8f: Move HTML fast parsing from createFragmentForMarku...

Chris Dumez noreply at github.com
Sat Feb 18 13:35:44 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 49be8f24f1f7b14df4a4e708744ed8b50bb53a2c
      https://github.com/WebKit/WebKit/commit/49be8f24f1f7b14df4a4e708744ed8b50bb53a2c
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-02-18 (Sat, 18 Feb 2023)

  Changed paths:
    M Source/WebCore/dom/DocumentFragment.cpp
    M Source/WebCore/editing/markup.cpp

  Log Message:
  -----------
  Move HTML fast parsing from createFragmentForMarkup() to DocumentFragment::parseHTML()
https://bugs.webkit.org/show_bug.cgi?id=252514

Reviewed by Ryosuke Niwa.

This change was suggested by Darin when I introduced the HTML fast parsing code
path. I have A/B tested it and it is perf-neutral on Speedometer.

This makes the code look a bit cleaner as the fast parsing logic is now hidden
under DocumentFragment::parseHTML(), making it look like a single code path
for parsing HTML.

* Source/WebCore/dom/DocumentFragment.cpp:
(WebCore::DocumentFragment::parseHTML):
* Source/WebCore/editing/markup.cpp:
(WebCore::createFragmentForMarkup):

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




More information about the webkit-changes mailing list