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

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

Issue 2742753002: Make SpellChecker::clearMisspellingsForMovingParagraphs() to take SelectionInDOMTree (Closed)
Patch Set: 2017-03-09T18:27:07 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 780dc67cc1729f8cf995d830d3fa59898b83cb62..012a9693251f32f8d429ad6c62433ff70c5ff4e7 100644
--- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
@@ -1486,10 +1486,11 @@ void CompositeEditCommand::moveParagraphs(
DCHECK(!document().needsLayoutTreeUpdate());
- setEndingSelection(
- SelectionInDOMTree::Builder().collapse(start).extend(end).build());
+ const SelectionInDOMTree& selectionToDelete =
+ SelectionInDOMTree::Builder().collapse(start).extend(end).build();
+ setEndingSelection(selectionToDelete);
document().frame()->spellChecker().clearMisspellingsForMovingParagraphs(
- endingSelection());
+ selectionToDelete);
deleteSelection(editingState, false, false, false);
if (editingState->isAborted())
return;

Powered by Google App Engine
This is Rietveld 408576698