| Index: third_party/WebKit/Source/core/editing/Editor.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/Editor.cpp b/third_party/WebKit/Source/core/editing/Editor.cpp
|
| index 3dfce44193cb8660f513ecea7a95fa790169c084..91df8d4815b927adecc3f63cd6212657ff8bc16b 100644
|
| --- a/third_party/WebKit/Source/core/editing/Editor.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/Editor.cpp
|
| @@ -714,7 +714,9 @@ void Editor::requestSpellcheckingAfterApplyingCommand(CompositeEditCommand* cmd)
|
| const EphemeralRange& insertedRange = toReplaceSelectionCommand(cmd)->insertedRange();
|
| if (insertedRange.isNull())
|
| return;
|
| - spellChecker().chunkAndMarkAllMisspellingsAndBadGrammar(cmd->endingSelection().rootEditableElement(), insertedRange);
|
| + // Patch crrev.com/2241293006 assumes the following equality. Revert if it fails.
|
| + DCHECK_EQ(cmd->endingSelection().rootEditableElement(), rootEditableElementOf(insertedRange.startPosition()));
|
| + spellChecker().chunkAndMarkAllMisspellingsAndBadGrammar(insertedRange);
|
| }
|
|
|
| void Editor::appliedEditing(CompositeEditCommand* cmd)
|
|
|