| 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 12cd1930c72d066d8636af8e67e6258ea0fe2636..f17814815d787019ef06bccb4505b0d08ef8b882 100644
|
| --- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| @@ -864,14 +864,14 @@ void SpellChecker::spellCheckOldSelection(const VisibleSelection& oldSelection,
|
|
|
| VisiblePosition oldStart(oldSelection.visibleStart());
|
| VisibleSelection oldAdjacentWords = VisibleSelection(startOfWord(oldStart, LeftWordIfOnBoundary), endOfWord(oldStart, RightWordIfOnBoundary));
|
| - if (oldAdjacentWords != newAdjacentWords) {
|
| - if (isContinuousSpellCheckingEnabled()) {
|
| - VisibleSelection selectedSentence = VisibleSelection(startOfSentence(oldStart), endOfSentence(oldStart));
|
| - markMisspellingsAndBadGrammar(oldAdjacentWords, true, selectedSentence);
|
| - } else {
|
| - markMisspellingsAndBadGrammar(oldAdjacentWords, false, oldAdjacentWords);
|
| - }
|
| + if (oldAdjacentWords == newAdjacentWords)
|
| + return;
|
| + if (isContinuousSpellCheckingEnabled()) {
|
| + VisibleSelection selectedSentence = VisibleSelection(startOfSentence(oldStart), endOfSentence(oldStart));
|
| + markMisspellingsAndBadGrammar(oldAdjacentWords, true, selectedSentence);
|
| + return;
|
| }
|
| + markMisspellingsAndBadGrammar(oldAdjacentWords, false, oldAdjacentWords);
|
| }
|
|
|
| static Node* findFirstMarkable(Node* node)
|
|
|