Index: Source/core/page/EventHandler.cpp |
diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp |
index 8018f081dcaa3c618a0af694dc9af761ca849940..d16caaea85c9aee27a7c254cccb6dd3a896f3cf3 100644 |
--- a/Source/core/page/EventHandler.cpp |
+++ b/Source/core/page/EventHandler.cpp |
@@ -375,7 +375,7 @@ void EventHandler::nodeWillBeRemoved(Node* nodeToBeRemoved) |
static void setSelectionIfNeeded(FrameSelection& selection, const VisibleSelection& newSelection) |
{ |
- if (selection.selection() != newSelection && selection.shouldChangeSelection(newSelection)) |
+ if (selection.selection() != newSelection) |
selection.setSelection(newSelection); |
} |
@@ -3833,8 +3833,7 @@ bool EventHandler::passMousePressEventToSubframe(MouseEventWithHitTestResults& m |
VisiblePosition visiblePos( |
mev.targetNode()->renderer()->positionForPoint(mev.localPoint())); |
VisibleSelection newSelection(visiblePos); |
- if (m_frame->selection().shouldChangeSelection(newSelection)) |
- m_frame->selection().setSelection(newSelection); |
+ m_frame->selection().setSelection(newSelection); |
} |
subframe->eventHandler()->handleMousePressEvent(mev.event()); |