Index: Source/core/page/EventHandler.cpp |
diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp |
index b95b1f66f6fd24317f10be61ab00b92a7e0cd369..14efec97622e5f6e2b18ab404f117de63cab9c3d 100644 |
--- a/Source/core/page/EventHandler.cpp |
+++ b/Source/core/page/EventHandler.cpp |
@@ -619,7 +619,6 @@ bool EventHandler::handleMousePressEvent(const MouseEventWithHitTestResults& eve |
bool swallowEvent = false; |
m_mousePressed = true; |
- m_selectionInitiationState = HaveNotStartedSelection; |
if (event.event().clickCount() == 2) |
swallowEvent = handleMousePressEventDoubleClick(event); |
@@ -1285,6 +1284,7 @@ bool EventHandler::handleMousePressEvent(const PlatformMouseEvent& mouseEvent) |
m_frame->selection().setCaretBlinkingSuspended(true); |
bool swallowEvent = !dispatchMouseEvent(EventTypeNames::mousedown, mev.targetNode(), m_clickCount, mouseEvent, true); |
+ m_selectionInitiationState = HaveNotStartedSelection; |
Rick Byers
2014/09/02 15:39:20
Please add a comment here saying why we don't cons
|
swallowEvent = swallowEvent || handleMouseFocus(mouseEvent); |
m_capturesDragging = !swallowEvent || mev.scrollbar(); |
@@ -2951,6 +2951,11 @@ void EventHandler::notifyElementActivated() |
m_lastDeferredTapElement = nullptr; |
} |
+void EventHandler::notifySelectionChanged() |
+{ |
+ m_selectionInitiationState = ExtendedSelection; |
+} |
+ |
bool EventHandler::handleAccessKey(const PlatformKeyboardEvent& evt) |
{ |
// FIXME: Ignoring the state of Shift key is what neither IE nor Firefox do. |