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

Unified Diff: third_party/WebKit/Source/core/dom/TreeScope.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
Index: third_party/WebKit/Source/core/dom/TreeScope.cpp
diff --git a/third_party/WebKit/Source/core/dom/TreeScope.cpp b/third_party/WebKit/Source/core/dom/TreeScope.cpp
index 63a4640bc9c3456fc78c83d46c4271e4ed0b41f6..7d14d246321df652dd8ea86a80b9bf49895dcc23 100644
--- a/third_party/WebKit/Source/core/dom/TreeScope.cpp
+++ b/third_party/WebKit/Source/core/dom/TreeScope.cpp
@@ -162,7 +162,7 @@ Node* TreeScope::ancestorInThisScope(Node* node) const
if (!node->isInShadowTree())
return nullptr;
- node = node->shadowHost();
+ node = node->ownerShadowHost();
}
return nullptr;
@@ -369,7 +369,7 @@ void TreeScope::adoptIfNeeded(Node& node)
Element* TreeScope::retarget(const Element& target) const
{
- for (const Element* ancestor = ⌖ ancestor; ancestor = ancestor->shadowHost()) {
+ for (const Element* ancestor = ⌖ ancestor; ancestor = ancestor->ownerShadowHost()) {
if (this == ancestor->treeScope())
return const_cast<Element*>(ancestor);
}
@@ -409,7 +409,7 @@ Element* TreeScope::adjustedFocusedElement() const
Element* TreeScope::adjustedElement(const Element& target) const
{
const Element* adjustedTarget = &target;
- for (const Element* ancestor = &target; ancestor; ancestor = ancestor->shadowHost()) {
+ for (const Element* ancestor = &target; ancestor; ancestor = ancestor->ownerShadowHost()) {
// This adjustment is done only for V1 shadows, and is skipped for V0 or UA shadows,
// because .pointerLockElement and .(webkit)fullscreenElement is not available for
// non-V1 shadow roots.
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | third_party/WebKit/Source/core/dom/shadow/InsertionPoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698