| 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;
|
|
|