| Index: Source/core/page/EventHandler.cpp
|
| diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp
|
| index 0d2af190fdadcaf713ea859b70be696606655e3a..69cdb909dc922ff2bb1d2e7615337b33be7477d9 100644
|
| --- a/Source/core/page/EventHandler.cpp
|
| +++ b/Source/core/page/EventHandler.cpp
|
| @@ -2263,8 +2263,11 @@ bool EventHandler::handleGestureTap(const GestureEventWithHitTestResults& target
|
| bool swallowMouseDownEvent = !dispatchMouseEvent(EventTypeNames::mousedown, currentHitTest.innerNode(), gestureEvent.tapCount(), fakeMouseDown, true);
|
| if (!swallowMouseDownEvent)
|
| swallowMouseDownEvent = handleMouseFocus(MouseEventWithHitTestResults(fakeMouseDown, currentHitTest));
|
| - if (!swallowMouseDownEvent)
|
| + if (!swallowMouseDownEvent) {
|
| swallowMouseDownEvent = handleMousePressEvent(MouseEventWithHitTestResults(fakeMouseDown, currentHitTest));
|
| + // m_selectionInitiationState is initialized after dispatching mousedown event.
|
| + m_selectionInitiationState = HaveNotStartedSelection;
|
| + }
|
|
|
| // FIXME: Use a hit-test cache to avoid unnecessary hit tests. http://crbug.com/398920
|
| if (currentHitTest.innerNode())
|
|
|