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

Unified Diff: third_party/WebKit/Source/core/dom/Node.cpp

Issue 2327743002: Rename Node::shadowHost() to Node::ownerShadowHost() (Closed)
Patch Set: fix Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.h ('k') | third_party/WebKit/Source/core/dom/TreeScope.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index 7783068ace9779adc67635bfee7dc8179401ef83..fece0c672df1b20fe2057619e62ffa29e1e334f9 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -590,11 +590,11 @@ Node& Node::shadowIncludingRoot() const
if (isConnected())
return document();
Node* root = const_cast<Node*>(this);
- while (Node* host = root->shadowHost())
+ while (Node* host = root->ownerShadowHost())
root = host;
while (Node* ancestor = root->parentNode())
root = ancestor;
- DCHECK(!root->shadowHost());
+ DCHECK(!root->ownerShadowHost());
return *root;
}
@@ -819,7 +819,7 @@ bool Node::isShadowIncludingInclusiveAncestorOf(const Node* node) const
if (!hasChildren && !hasShadow)
return false;
- for (; node; node = node->shadowHost()) {
+ for (; node; node = node->ownerShadowHost()) {
if (treeScope() == node->treeScope())
return contains(node);
}
@@ -1033,7 +1033,7 @@ ShadowRoot* Node::v1ShadowRootOfParent() const
return nullptr;
}
-Element* Node::shadowHost() const
+Element* Node::ownerShadowHost() const
{
if (ShadowRoot* root = containingShadowRoot())
return &root->host();
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.h ('k') | third_party/WebKit/Source/core/dom/TreeScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698