| 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 4dac0578c2f9090339dc04554532273de99dd462..63ef51ded5415366a30c2dddea4804cb8bcded7e 100644
|
| --- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| @@ -208,8 +208,8 @@ void SpellChecker::advanceToNextMisspelling(bool startBeforeSelection)
|
| // next word so we start checking at a word boundary. Going back by one char
|
| // and then forward by a word does the trick.
|
| if (startedWithSelection) {
|
| - VisiblePosition oneBeforeStart = previousPositionOf(createVisiblePosition(spellingSearchStart));
|
| - if (oneBeforeStart.isNotNull())
|
| + VisiblePosition oneBeforeStart = previousPositionOf(createVisiblePosition(spellingSearchStart));
|
| + if (oneBeforeStart.isNotNull() && rootEditableElementOf(oneBeforeStart) == rootEditableElementOf(spellingSearchStart))
|
| spellingSearchStart = endOfWord(oneBeforeStart).toParentAnchoredPosition();
|
| // else we were already at the start of the editable node
|
| }
|
|
|