| 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 5532d32b845d6a5547bde358e1e205171f647aaa..3b3dddb1c63a520c5e354cdb6888fe2be1ee0087 100644
|
| --- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| @@ -494,7 +494,11 @@ void SpellChecker::markMisspellingsAfterTypingToWord(
|
| }
|
|
|
| bool SpellChecker::isSpellCheckingEnabledInFocusedNode() const {
|
| - Node* focusedNode = frame().selection().start().anchorNode();
|
| + Node* focusedNode = frame()
|
| + .selection()
|
| + .selectionInDOMTree()
|
| + .computeStartPosition()
|
| + .anchorNode();
|
| if (!focusedNode)
|
| return false;
|
| const Element* focusedElement = focusedNode->isElementNode()
|
|
|