| Index: third_party/WebKit/Source/web/WebViewImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| index 073fd94702d908912e0ea6bccc215fb88555156e..8842ceba93f2a36b826c125ed08a454547670324 100644
|
| --- a/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| @@ -496,7 +496,7 @@ void WebViewImpl::handleMouseDown(LocalFrame& mainFrame,
|
| // Take capture on a mouse down on a plugin so we can send it mouse events.
|
| // 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);
|
| + IntPoint point(event.position.x, event.position.y);
|
| if (event.button == WebMouseEvent::Button::Left &&
|
| m_page->mainFrame()->isLocalFrame()) {
|
| point =
|
| @@ -637,10 +637,10 @@ bool WebViewImpl::scrollBy(const WebFloatSize& delta,
|
| syntheticWheel.wheelTicksX = delta.width / tickDivisor;
|
| syntheticWheel.wheelTicksY = delta.height / tickDivisor;
|
| syntheticWheel.hasPreciseScrollingDeltas = true;
|
| - syntheticWheel.x = m_positionOnFlingStart.x;
|
| - syntheticWheel.y = m_positionOnFlingStart.y;
|
| - syntheticWheel.globalX = m_globalPositionOnFlingStart.x;
|
| - syntheticWheel.globalY = m_globalPositionOnFlingStart.y;
|
| + syntheticWheel.position.x = m_positionOnFlingStart.x;
|
| + syntheticWheel.position.y = m_positionOnFlingStart.y;
|
| + syntheticWheel.screenPosition.x = m_globalPositionOnFlingStart.x;
|
| + syntheticWheel.screenPosition.y = m_globalPositionOnFlingStart.y;
|
|
|
| if (handleMouseWheel(*m_page->deprecatedLocalMainFrame(), syntheticWheel) !=
|
| WebInputEventResult::NotHandled)
|
| @@ -943,10 +943,10 @@ WebInputEventResult WebViewImpl::handleSyntheticWheelFromTouchpadPinchEvent(
|
| WebInputEvent::MouseWheel,
|
| pinchEvent.modifiers() | WebInputEvent::ControlKey,
|
| pinchEvent.timeStampSeconds());
|
| - wheelEvent.x = pinchEvent.x;
|
| - wheelEvent.y = pinchEvent.y;
|
| - wheelEvent.globalX = pinchEvent.globalX;
|
| - wheelEvent.globalY = pinchEvent.globalY;
|
| + wheelEvent.position.x = pinchEvent.x;
|
| + wheelEvent.position.y = pinchEvent.y;
|
| + wheelEvent.screenPosition.x = pinchEvent.globalX;
|
| + wheelEvent.screenPosition.y = pinchEvent.globalY;
|
| wheelEvent.deltaX = 0;
|
|
|
| // The function to convert scales to deltaY values is designed to be
|
|
|