| 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 8dfe33c483607d7cf01dacea07d2d2dfea5de9a0..9a77c1513d7684a71ec9bcda67f56e0a95fdcf8e 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
|
| @@ -1336,7 +1336,7 @@ void CompositeEditCommand::moveParagraphs(const VisiblePosition& startOfParagrap
|
| // FIXME (5098931): We should add a new insert action "WebViewInsertActionMoved" and call shouldInsertFragment here.
|
|
|
| setEndingSelection(VisibleSelection(start, end));
|
| - document().frame()->spellChecker().clearMisspellingsAndBadGrammar(endingSelection());
|
| + document().frame()->spellChecker().clearMisspellingsAndBadGrammarForMovingParagraphs(endingSelection());
|
| deleteSelection(editingState, false, false, false);
|
| if (editingState->isAborted())
|
| return;
|
| @@ -1381,7 +1381,7 @@ void CompositeEditCommand::moveParagraphs(const VisiblePosition& startOfParagrap
|
| if (editingState->isAborted())
|
| return;
|
|
|
| - document().frame()->spellChecker().markMisspellingsAndBadGrammar(endingSelection());
|
| + document().frame()->spellChecker().markMisspellingsAndBadGrammarForMovingParagraphs(endingSelection());
|
|
|
| // If the selection is in an empty paragraph, restore styles from the old empty paragraph to the new empty paragraph.
|
| bool selectionIsEmptyParagraph = endingSelection().isCaret() && isStartOfParagraph(endingSelection().visibleStart()) && isEndOfParagraph(endingSelection().visibleStart());
|
|
|