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

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

Issue 2414323002: Move AlreadySpellCheckedFlag from NodeFlags to ElementFlags (Closed)
Patch Set: Revise comment Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b78667604cdfe88b1c4cefe335c77913223d2153..6b1e6d16cf91d174b624de377d6669f5a8bea859 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
+++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
@@ -167,8 +167,10 @@ void SpellChecker::toggleSpellCheckingEnabled() {
if (!frame->isLocalFrame())
continue;
for (Node& node :
- NodeTraversal::startsAt(toLocalFrame(frame)->document()->rootNode()))
- node.setAlreadySpellChecked(false);
+ NodeTraversal::startsAt(toLocalFrame(frame)->document()->rootNode())) {
+ if (node.isElementNode())
+ toElement(node).setAlreadySpellChecked(false);
+ }
}
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698