| Index: third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| index 0fa676f5dbdae622c1896308d4417bb0f120b0f0..603360f1b57fbef4a71eef5f40254f048ab97e75 100644
|
| --- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| @@ -352,6 +352,8 @@ void SpellChecker::markMisspellingsAfterLineBreak(const VisibleSelection& wordSe
|
| if (!isContinuousSpellCheckingEnabled())
|
| return;
|
|
|
| + m_spellCheckRequester->cancelCheck();
|
| +
|
| VisibleSelection wholeParagraph(
|
| startOfParagraph(wordSelection.visibleStart()),
|
| endOfParagraph(wordSelection.visibleEnd()));
|
| @@ -367,6 +369,8 @@ void SpellChecker::markMisspellingsAfterTypingToWord(const VisiblePosition &word
|
| TRACE_EVENT0("blink", "SpellChecker::markMisspellingsAfterTypingToWord");
|
|
|
| if (unifiedTextCheckerEnabled()) {
|
| + m_spellCheckRequester->cancelCheck();
|
| +
|
| VisibleSelection adjacentWords = VisibleSelection(startOfWord(wordStart, LeftWordIfOnBoundary), endOfWord(wordStart, RightWordIfOnBoundary));
|
| VisibleSelection selectedSentence = VisibleSelection(startOfSentence(wordStart), endOfSentence(wordStart));
|
| markAllMisspellingsAndBadGrammarInRanges(adjacentWords.toNormalizedEphemeralRange(), selectedSentence.toNormalizedEphemeralRange());
|
|
|