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

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

Issue 2650183002: Remove spelling markers when element is not editable (Closed)
Patch Set: Add missing comment Created 3 years, 11 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.h
diff --git a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h
index 3d6ba6f5bdde5869ec691ca8e2ee376efd55eff1..962afde59a16d4c466f077eda7ebd2eddc67ef8a 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h
+++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h
@@ -73,6 +73,8 @@ class CORE_EXPORT SpellChecker final : public GarbageCollected<SpellChecker> {
void replaceMisspelledRange(const String&);
void removeSpellingMarkers();
void removeSpellingMarkersUnderWords(const Vector<String>& words);
+ enum ElementsType { All, OnlyNonEditable };
Xiaocheng 2017/02/01 05:20:28 Please use |enum class|, and name the members in k
Manuel Rego 2017/02/01 14:50:25 Acknowledged.
+ void removeSpellingAndGrammarMarkers(const HTMLElement&, ElementsType = All);
void spellCheckAfterBlur();
void didEndEditingOnTextField(Element*);

Powered by Google App Engine
This is Rietveld 408576698