| 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());
|
| }
|
| }
|
|
|
|
|