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

Unified Diff: third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp

Issue 2733933003: Move CompositeEditCommand::deleteSelection() to TypingCommand::deleteSelectionIfRange() (Closed)
Patch Set: 2017-03-07T13:11:49 Created 3 years, 9 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
Index: third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
index fe67f4e254b58e21a8d5a4409f27a832f5d7ab6d..dcecc6c413ce7b46dff6c1061b6924d293867697 100644
--- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
@@ -651,12 +651,13 @@ void CompositeEditCommand::deleteSelection(EditingState* editingState,
editingState);
}
-void CompositeEditCommand::deleteSelection(const VisibleSelection& selection,
- EditingState* editingState,
- bool smartDelete,
- bool mergeBlocksAfterDelete,
- bool expandForSpecialElements,
- bool sanitizeMarkup) {
+void CompositeEditCommand::deleteSelectionIfRange(
+ const VisibleSelection& selection,
+ EditingState* editingState,
+ bool smartDelete,
+ bool mergeBlocksAfterDelete,
+ bool expandForSpecialElements,
+ bool sanitizeMarkup) {
if (selection.isRange())
applyCommandToComposite(DeleteSelectionCommand::create(
selection, smartDelete, mergeBlocksAfterDelete,

Powered by Google App Engine
This is Rietveld 408576698