Index: third_party/WebKit/Source/web/WebPagePopupImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebPagePopupImpl.cpp b/third_party/WebKit/Source/web/WebPagePopupImpl.cpp |
index 8fd0d07d8f9921178bd3ce5930ba2d1339a58142..6cfba0e25fba748c49451c760fe25464df2d807e 100644 |
--- a/third_party/WebKit/Source/web/WebPagePopupImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebPagePopupImpl.cpp |
@@ -477,7 +477,8 @@ WebInputEventResult WebPagePopupImpl::handleGestureEvent( |
void WebPagePopupImpl::handleMouseDown(LocalFrame& mainFrame, |
const WebMouseEvent& event) { |
- if (isViewportPointInWindow(event.x, event.y)) |
+ if (isViewportPointInWindow(event.positionInWidget().x, |
+ event.positionInWidget().y)) |
PageWidgetEventHandler::handleMouseDown(mainFrame, event); |
else |
cancel(); |
@@ -486,7 +487,8 @@ void WebPagePopupImpl::handleMouseDown(LocalFrame& mainFrame, |
WebInputEventResult WebPagePopupImpl::handleMouseWheel( |
LocalFrame& mainFrame, |
const WebMouseWheelEvent& event) { |
- if (isViewportPointInWindow(event.x, event.y)) |
+ if (isViewportPointInWindow(event.positionInWidget().x, |
+ event.positionInWidget().y)) |
return PageWidgetEventHandler::handleMouseWheel(mainFrame, event); |
cancel(); |
return WebInputEventResult::NotHandled; |