Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 46370fde504e82b87eebf53e64229e7f56ca5d02
      
https://github.com/WebKit/WebKit/commit/46370fde504e82b87eebf53e64229e7f56ca5d02
  Author: Ryosuke Niwa <[email protected]>
  Date:   2026-02-17 (Tue, 17 Feb 2026)

  Changed paths:
    M Source/WebCore/dom/Node.cpp
    M Source/WebCore/dom/Node.h

  Log Message:
  -----------
  Replace isInUserAgentShadowTree() with bit flag checks
https://bugs.webkit.org/show_bug.cgi?id=308065

Reviewed by Anne van Kesteren.

Replace the bunch of function calls in isInUserAgentShadowTree with bit flag 
checks.

Since a Node that has ever been in a user agent shadow, in theory, should never 
be
inserted back into a non-user-agent shadow tree, isInUserAgentShadowTree should
return true if and only if the Node is marked as having ever been in a user 
agent
shadow and is still in a shadow tree.

No new tests since there should be no behavioral changes.

* Source/WebCore/dom/Node.cpp:
(WebCore::Node::checkIsInUserAgentShadowTree const):
(WebCore::Node::isInUserAgentShadowTree const): Deleted.
* Source/WebCore/dom/Node.h:
(WebCore::Node::isInUserAgentShadowTree const):
(WebCore::Node::checkIsInUserAgentShadowTree const):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to