| 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 0e9a94e1e29369179ffbb9604d5268a2c47d25af..2e7d354fea86b059bf1d58fe1e24d54f479f632e 100644
|
| --- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| @@ -209,7 +209,7 @@ void SpellChecker::advanceToNextMisspelling(bool startBeforeSelection)
|
| // and then forward by a word does the trick.
|
| if (startedWithSelection) {
|
| VisiblePosition oneBeforeStart = previousPositionOf(createVisiblePosition(spellingSearchStart));
|
| - if (oneBeforeStart.isNotNull() && rootEditableElementOf(oneBeforeStart) == rootEditableElementOf(spellingSearchStart))
|
| + if (oneBeforeStart.isNotNull() && rootEditableElementOf(oneBeforeStart) == editableRootForPosition(spellingSearchStart))
|
| spellingSearchStart = endOfWord(oneBeforeStart).toParentAnchoredPosition();
|
| // else we were already at the start of the editable node
|
| }
|
|
|