Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(890)

Unified Diff: Source/core/page/EventHandler.cpp

Issue 26237004: Remove unused editing related member functions from WebViewClient (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 2013-10-09T17:59:14 Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/page/EditorClient.h ('k') | Source/core/page/FocusController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « Source/core/page/EditorClient.h ('k') | Source/core/page/FocusController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698