Index: Source/core/page/EventHandler.cpp |
diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp |
index 7a28dc96a1595b2563160f4a90c81bb79951cbe9..9eb6d7f4b899f794ade84760de6ffd353d3c08d7 100644 |
--- a/Source/core/page/EventHandler.cpp |
+++ b/Source/core/page/EventHandler.cpp |
@@ -1646,14 +1646,12 @@ bool EventHandler::dispatchDragEvent(const AtomicString& eventType, Node* dragTa |
if (!view) |
return false; |
- // FIXME: The drag event have to support for |buttons| attribute because |
- // the event is derived from mouse event. Please see crbug.com/276941. |
RefPtrWillBeRawPtr<MouseEvent> me = MouseEvent::create(eventType, |
true, true, m_frame->document()->domWindow(), |
0, event.globalPosition().x(), event.globalPosition().y(), event.position().x(), event.position().y(), |
event.movementDelta().x(), event.movementDelta().y(), |
event.ctrlKey(), event.altKey(), event.shiftKey(), event.metaKey(), |
- 0, 0, nullptr, dataTransfer); |
+ 0, MouseEvent::platformModifiersToButtons(event.modifiers()), nullptr, dataTransfer); |
dragTarget->dispatchEvent(me.get(), IGNORE_EXCEPTION); |
return me->defaultPrevented(); |