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

Unified Diff: third_party/WebKit/Source/core/layout/HitTestResult.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/layout/HitTestResult.cpp
diff --git a/third_party/WebKit/Source/core/layout/HitTestResult.cpp b/third_party/WebKit/Source/core/layout/HitTestResult.cpp
index ff3418d3f781012d1aef1065f04999c98ff84b56..974045c3f60132bd8a04b96b3f256e97d8fff01f 100644
--- a/third_party/WebKit/Source/core/layout/HitTestResult.cpp
+++ b/third_party/WebKit/Source/core/layout/HitTestResult.cpp
@@ -173,7 +173,7 @@ void HitTestResult::setToShadowHostIfInUserAgentShadowRoot()
if (Node* node = innerNode()) {
if (ShadowRoot* containingShadowRoot = node->containingShadowRoot()) {
if (containingShadowRoot->type() == ShadowRootType::UserAgent)
- setInnerNode(node->shadowHost());
+ setInnerNode(node->ownerShadowHost());
}
}
}
@@ -186,8 +186,8 @@ HTMLAreaElement* HitTestResult::imageAreaForImage() const
imageElement = toHTMLImageElement(m_innerNode);
} else if (m_innerNode->isInShadowTree()) {
if (m_innerNode->containingShadowRoot()->type() == ShadowRootType::UserAgent) {
- if (isHTMLImageElement(m_innerNode->shadowHost()))
- imageElement = toHTMLImageElement(m_innerNode->shadowHost());
+ if (isHTMLImageElement(m_innerNode->ownerShadowHost()))
+ imageElement = toHTMLImageElement(m_innerNode->ownerShadowHost());
}
}

Powered by Google App Engine
This is Rietveld 408576698