Index: third_party/WebKit/Source/core/input/MouseEventManager.cpp |
diff --git a/third_party/WebKit/Source/core/input/MouseEventManager.cpp b/third_party/WebKit/Source/core/input/MouseEventManager.cpp |
index 1810c69b2dc98d618b3f14166d5c977752046200..f52f2c39c3dbd6c2b979e7a81ea6e45c59c3e6ba 100644 |
--- a/third_party/WebKit/Source/core/input/MouseEventManager.cpp |
+++ b/third_party/WebKit/Source/core/input/MouseEventManager.cpp |
@@ -645,15 +645,14 @@ bool MouseEventManager::handleDragDropIfPossible( |
const GestureEventWithHitTestResults& targetedEvent) { |
if (m_frame->settings() && m_frame->settings()->touchDragDropEnabled() && |
m_frame->view()) { |
- const PlatformGestureEvent& gestureEvent = targetedEvent.event(); |
- IntPoint adjustedPoint = gestureEvent.position(); |
- unsigned modifiers = gestureEvent.getModifiers(); |
+ const WebGestureEvent& gestureEvent = targetedEvent.event(); |
+ unsigned modifiers = gestureEvent.modifiers; |
// TODO(mustaq): Suppressing long-tap MouseEvents could break |
// drag-drop. Will do separately because of the risk. crbug.com/606938. |
PlatformMouseEvent mouseDownEvent( |
- adjustedPoint, gestureEvent.globalPosition(), |
- WebPointerProperties::Button::Left, PlatformEvent::MousePressed, 1, |
+ gestureEvent, WebPointerProperties::Button::Left, |
+ PlatformEvent::MousePressed, 1, |
static_cast<PlatformEvent::Modifiers>(modifiers | |
PlatformEvent::LeftButtonDown), |
PlatformMouseEvent::FromTouch, WTF::monotonicallyIncreasingTime(), |
@@ -661,8 +660,8 @@ bool MouseEventManager::handleDragDropIfPossible( |
m_mouseDown = mouseDownEvent; |
PlatformMouseEvent mouseDragEvent( |
- adjustedPoint, gestureEvent.globalPosition(), |
- WebPointerProperties::Button::Left, PlatformEvent::MouseMoved, 1, |
+ gestureEvent, WebPointerProperties::Button::Left, |
+ PlatformEvent::MouseMoved, 1, |
static_cast<PlatformEvent::Modifiers>(modifiers | |
PlatformEvent::LeftButtonDown), |
PlatformMouseEvent::FromTouch, WTF::monotonicallyIncreasingTime(), |