[webkit-changes] [WebKit/WebKit] 9bacb3: Add fast path for Element::removeShadowRoot()
Chris Dumez
noreply at github.com
Thu Mar 9 15:04:19 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9bacb3aad0e60586ac236ee7fe218a0782000a9f
https://github.com/WebKit/WebKit/commit/9bacb3aad0e60586ac236ee7fe218a0782000a9f
Author: Chris Dumez <cdumez at apple.com>
Date: 2023-03-09 (Thu, 09 Mar 2023)
Changed paths:
M Source/WebCore/dom/Element.cpp
M Source/WebCore/dom/Element.h
M Source/WebCore/dom/ElementRareData.h
Log Message:
-----------
Add fast path for Element::removeShadowRoot()
https://bugs.webkit.org/show_bug.cgi?id=253663
Reviewed by Ryosuke Niwa.
Add fast path for Element::removeShadowRoot(), for the common case where the
element has no shadow root.
* Source/WebCore/dom/Element.cpp:
(WebCore::Element::removeShadowRootSlow):
(WebCore::Element::removeShadowRoot): Deleted.
* Source/WebCore/dom/Element.h:
* Source/WebCore/dom/ElementRareData.h:
(WebCore::Element::removeShadowRoot):
Canonical link: https://commits.webkit.org/261473@main
More information about the webkit-changes
mailing list