| 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 3da48427e32fc09e84d5d2241567aa331573fe3b..ecc186b2d993d2b041ec9d61938b1361a16cc9a7 100644
|
| --- a/third_party/WebKit/Source/web/WebPagePopupImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebPagePopupImpl.cpp
|
| @@ -478,7 +478,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();
|
| @@ -487,7 +488,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;
|
|
|