Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(418)

Unified Diff: third_party/WebKit/Source/core/html/HTMLSlotElement.cpp

Issue 1885453002: Rename Node::treeScope() to Node::treeScopeOrDocument() Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp b/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
index 156689e76873104ff6fec7eaa50a98d24490e829..09c52acbaaa635dc7d8669b13e5c1fe44060155c 100644
--- a/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
@@ -198,7 +198,7 @@ Node::InsertionNotificationRequest HTMLSlotElement::insertedInto(ContainerNode*
if (ShadowRoot* root = containingShadowRoot()) {
if (ElementShadow* rootOwner = root->owner())
rootOwner->setNeedsDistributionRecalc();
- if (root == insertionPoint->treeScope().rootNode())
+ if (root == insertionPoint->treeScopeOrDocument().rootNode())
root->didAddSlot();
}
@@ -222,7 +222,7 @@ void HTMLSlotElement::removedFrom(ContainerNode* insertionPoint)
// Since this insertion point is no longer visible from the shadow subtree, it need to clean itself up.
clearDistribution();
- if (root == insertionPoint->treeScope().rootNode())
+ if (root == insertionPoint->treeScopeOrDocument().rootNode())
root->didRemoveSlot();
HTMLElement::removedFrom(insertionPoint);
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLMapElement.cpp ('k') | third_party/WebKit/Source/core/layout/HitTestResult.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698