Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7f2645c0c68beda8acc152521a199eeeb9d97865
      
https://github.com/WebKit/WebKit/commit/7f2645c0c68beda8acc152521a199eeeb9d97865
  Author: Ryosuke Niwa <rn...@webkit.org>
  Date:   2025-07-29 (Tue, 29 Jul 2025)

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

  Log Message:
  -----------
  Store the opaque root in Node
https://bugs.webkit.org/show_bug.cgi?id=296613

Reviewed by Wenson Hsieh.

This PR reverts 296347@main in favor of storing the opaque root in Node instead.

The new approach is a more comprehensive solution to the problem and turns out
not to cause any memory usage regression based on our testing.

* Source/WebCore/dom/Node.cpp:
(WebCore::Node::traverseToShadowIncludingRoot const):
(WebCore::Node::insertedIntoAncestor):
(WebCore::Node::removedFromAncestor):
(WebCore::Node::shadowIncludingRoot const): Deleted.
* Source/WebCore/dom/Node.h:
(WebCore::Node::shadowIncludingRoot const):
* Source/WebCore/dom/NodeInlines.h:
(WebCore::Node::opaqueRoot const):
(WebCore::Node::rootNode const):
(WebCore::Node::setTreeScope):
* Source/WebCore/dom/TreeScope.h:
* Source/WebCore/dom/TreeScopeInlines.h:
(WebCore::TreeScope::setDocumentScope):
(WebCore::TreeScope::treeScopeMutationLock): Deleted.

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to