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

Unified Diff: Source/core/editing/SetSelectionCommand.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/editing/FrameSelection.cpp ('k') | Source/core/editing/SpellingCorrectionCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/SetSelectionCommand.cpp
diff --git a/Source/core/editing/SetSelectionCommand.cpp b/Source/core/editing/SetSelectionCommand.cpp
index 48c86bf0698306b8239ccc719975b6a436282265..5fa2515ff3a7a1358d8c57683187203f2927f3b1 100644
--- a/Source/core/editing/SetSelectionCommand.cpp
+++ b/Source/core/editing/SetSelectionCommand.cpp
@@ -41,17 +41,14 @@ SetSelectionCommand::SetSelectionCommand(const VisibleSelection& selection, Fram
void SetSelectionCommand::doApply()
{
FrameSelection& selection = document().frame()->selection();
- if (selection.shouldChangeSelection(m_selectionToSet) && m_selectionToSet.isNonOrphanedCaretOrRange()) {
- selection.setSelection(m_selectionToSet, m_options);
- setEndingSelection(m_selectionToSet);
- }
+ selection.setSelection(m_selectionToSet, m_options);
+ setEndingSelection(m_selectionToSet);
}
void SetSelectionCommand::doUnapply()
{
FrameSelection& selection = document().frame()->selection();
- if (selection.shouldChangeSelection(startingSelection()) && startingSelection().isNonOrphanedCaretOrRange())
- selection.setSelection(startingSelection(), m_options);
+ selection.setSelection(startingSelection(), m_options);
}
} // namespace WebCore
« no previous file with comments | « Source/core/editing/FrameSelection.cpp ('k') | Source/core/editing/SpellingCorrectionCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698