| 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 cbc0247869c9921ce1ddb6d17ddae0178e20b19c..046bf4ed70bd5a29694e73c8b6dc05b3dda0934e 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().clearMisspellings(endingSelection());
|
| + document().frame()->spellChecker().clearMisspellingsAndBadGrammar(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().markMisspellings(endingSelection());
|
| + document().frame()->spellChecker().markMisspellingsAndBadGrammar(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());
|
|
|