Index: Source/web/WebViewImpl.cpp |
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp |
index b6aab0add60f54b0b88bb0136d36d162ae698a04..f2660ff7c600e4d083928236c076cc1dcbc3cf50 100644 |
--- a/Source/web/WebViewImpl.cpp |
+++ b/Source/web/WebViewImpl.cpp |
@@ -501,7 +501,7 @@ void WebViewImpl::handleMouseDown(LocalFrame& mainFrame, const WebMouseEvent& ev |
// If the hit node is a plugin but a scrollbar is over it don't start mouse |
// capture because it will interfere with the scrollbar receiving events. |
IntPoint point(event.x, event.y); |
- if (event.button == WebMouseEvent::ButtonLeft && m_page->mainFrame()->isLocalFrame() && !m_page->deprecatedLocalMainFrame()->view()->scrollbarAtPoint(point)) { |
+ if (event.button == WebMouseEvent::ButtonLeft && m_page->mainFrame()->isLocalFrame()) { |
point = m_page->deprecatedLocalMainFrame()->view()->windowToContents(point); |
HitTestResult result(m_page->deprecatedLocalMainFrame()->eventHandler().hitTestResultAtPoint(point)); |
result.setToShadowHostIfInUserAgentShadowRoot(); |