Index: Source/web/WebFrameWidgetImpl.cpp |
diff --git a/Source/web/WebFrameWidgetImpl.cpp b/Source/web/WebFrameWidgetImpl.cpp |
index df861ab42c9374debbbb3dc1fdb3eef2367b3741..e3765e1386d0a956934f508fbbac387586ad4a71 100644 |
--- a/Source/web/WebFrameWidgetImpl.cpp |
+++ b/Source/web/WebFrameWidgetImpl.cpp |
@@ -680,7 +680,7 @@ void WebFrameWidgetImpl::handleMouseDown(LocalFrame& mainFrame, const WebMouseEv |
if (event.button == WebMouseEvent::ButtonLeft) { |
point = m_localRoot->frameView()->windowToContents(point); |
HitTestResult result(m_localRoot->frame()->eventHandler().hitTestResultAtPoint(point)); |
- result.setToShadowHostIfInUserAgentShadowRoot(); |
+ result.setToShadowHostIfInClosedShadowRoot(); |
Node* hitNode = result.innerNonSharedNode(); |
if (!result.scrollbar() && hitNode && hitNode->renderer() && hitNode->renderer()->isEmbeddedObject()) { |