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 81155527bea5ed9421c0ec6609f20f20df1abc89..8d85f6757296f8fb816925e740a7b09eff31ad3d 100644 |
--- a/third_party/WebKit/Source/web/WebPagePopupImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebPagePopupImpl.cpp |
@@ -484,7 +484,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(); |
@@ -493,7 +494,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; |