| 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 120089a0f1f65c5da1b328a786a7f2f8ed2bee30..1e28221286f28f72b4702c77d040ec9511163921 100644
|
| --- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| @@ -419,7 +419,7 @@ bool SpellChecker::markMisspellingsOrBadGrammar(const VisibleSelection& selectio
|
|
|
| // If we're not in an editable node, bail.
|
| Node* editableNode = range.startPosition().computeContainerNode();
|
| - if (!editableNode || !editableNode->hasEditableStyle())
|
| + if (!editableNode || !hasEditableStyle(*editableNode))
|
| return false;
|
|
|
| if (!isSpellCheckingEnabledFor(editableNode))
|
| @@ -487,7 +487,7 @@ void SpellChecker::markAllMisspellingsAndBadGrammarInRanges(TextCheckingTypeMask
|
|
|
| // If we're not in an editable node, bail.
|
| Node* editableNode = spellingRange.startPosition().computeContainerNode();
|
| - if (!editableNode || !editableNode->hasEditableStyle())
|
| + if (!editableNode || !hasEditableStyle(*editableNode))
|
| return;
|
|
|
| if (!isSpellCheckingEnabledFor(editableNode))
|
|
|