Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8af162c62e03384c11d74f8a4301b66790e90e0c
https://github.com/WebKit/WebKit/commit/8af162c62e03384c11d74f8a4301b66790e90e0c
Author: Ryosuke Niwa <[email protected]>
Date: 2026-03-02 (Mon, 02 Mar 2026)
Changed paths:
M Source/WebCore/dom/ComposedTreeAncestorIterator.h
M Source/WebCore/dom/Node.cpp
M Source/WebCore/dom/Node.h
Log Message:
-----------
Mark functions for composed tree ancestor traversal as NODELETE
https://bugs.webkit.org/show_bug.cgi?id=308950
Reviewed by Anne van Kesteren.
Now that ShadowRoot::findAssignedSlot is NODELETE as of 308440@main,
this PR annotates functions to traverse ancestors in the composed tree
as also NODELETE. In some cases, this resulted in the removal of smart
pointers because the code block is entirely "trivial".
No new tests since there should be no behavioral change.
* Source/WebCore/dom/ComposedTreeAncestorIterator.h:
(WebCore::ComposedTreeAncestorIterator::traverseParent):
(WebCore::ComposedTreeAncestorAdapter::begin):
* Source/WebCore/dom/Node.cpp:
(WebCore::Node::assignedSlot const):
(WebCore::Node::assignedSlotForBindings const):
* Source/WebCore/dom/Node.h:
Canonical link: https://commits.webkit.org/308506@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications