Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce branching a little under JSNodeOwner::isReachableFromOpaqueRoo…
…ts() https://bugs.webkit.org/show_bug.cgi?id=240742 Reviewed by Geoffrey Garen. Given that JSNodeOwner::isReachableFromOpaqueRoots() already checks if the Node is connected or not, make sure to avoid the same check under Node::opaqueRoot(). * Source/WebCore/bindings/js/JSNodeCustom.cpp: (WebCore::JSNodeOwner::isReachableFromOpaqueRoots): * Source/WebCore/dom/Node.cpp: (WebCore::Node::traverseToOpaqueRoot const): (WebCore::Node::opaqueRootSlow const): Deleted. * Source/WebCore/dom/Node.h: (WebCore::Node::opaqueRoot const): Canonical link: https://commits.webkit.org/250831@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294605 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
3 changed files
with
6 additions
and
5 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