Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1280)

Unified Diff: third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp

Issue 2171493003: [Editing][DOM][CodeHealth] Make Node::hasEditableStyle global functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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))

Powered by Google App Engine
This is Rietveld 408576698