[webkit-changes] [WebKit/WebKit] 9a64c5: Call parentNode() instead of parentOrShadowHostNod...
Chris Dumez
noreply at github.com
Mon Mar 13 16:50:25 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9a64c570c29a4bc9021922493b4167056c2c6eef
https://github.com/WebKit/WebKit/commit/9a64c570c29a4bc9021922493b4167056c2c6eef
Author: Chris Dumez <cdumez at apple.com>
Date: 2023-03-13 (Mon, 13 Mar 2023)
Changed paths:
M Source/WebCore/dom/Attr.h
M Source/WebCore/dom/CharacterData.h
M Source/WebCore/dom/Document.h
M Source/WebCore/dom/DocumentType.h
M Source/WebCore/dom/Element.h
M Source/WebCore/dom/Text.cpp
M Source/WebCore/svg/SVGElement.cpp
Log Message:
-----------
Call parentNode() instead of parentOrShadowHostNode() on Node types that cannot be shadow roots
https://bugs.webkit.org/show_bug.cgi?id=253776
Reviewed by Darin Adler.
Call parentNode() instead of parentOrShadowHostNode() on Node types that cannot
be shadow roots. This avoids a shadow root check.
* Source/WebCore/dom/CharacterData.h:
* Source/WebCore/dom/Document.h:
* Source/WebCore/dom/Element.h:
* Source/WebCore/dom/Text.cpp:
(WebCore::isSVGShadowText):
(WebCore::isSVGText):
(WebCore::Text::createTextRenderer):
* Source/WebCore/svg/SVGElement.cpp:
(WebCore::SVGElement::ownerSVGElement const):
(WebCore::SVGElement::viewportElement const):
Canonical link: https://commits.webkit.org/261601@main
More information about the webkit-changes
mailing list