-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid constructing a DocumentFragment unnecessarily in DOMParser::par…
…seFromString() https://bugs.webkit.org/show_bug.cgi?id=260665 Reviewed by Yusuke Suzuki. Avoid constructing a DocumentFragment unnecessarily in DOMParser::parseFromString(). Have the HTML fast parser construct the subtree under the <body> element directly instead. * Source/WebCore/dom/DocumentFragment.cpp: (WebCore::DocumentFragment::parseHTML): * Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp: (WebCore::HTMLFastPathParser::HTMLFastPathParser): (WebCore::HTMLFastPathParser::parseCompleteInput): (WebCore::tryFastParsingHTMLFragmentImpl): (WebCore::tryFastParsingHTMLFragment): * Source/WebCore/html/parser/HTMLDocumentParserFastPath.h: * Source/WebCore/xml/DOMParser.cpp: (WebCore::DOMParser::parseFromString): Canonical link: https://commits.webkit.org/267242@main
- Loading branch information
Showing
4 changed files
with
16 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters