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

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

Issue 2650183002: Remove spelling markers when element is not editable (Closed)
Patch Set: Apply suggested changes 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..1df14edf871f1d1aa1e79c4e7f10d32f060eaa89 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h
+++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h
@@ -73,6 +73,9 @@ class CORE_EXPORT SpellChecker final : public GarbageCollected<SpellChecker> {
void replaceMisspelledRange(const String&);
void removeSpellingMarkers();
void removeSpellingMarkersUnderWords(const Vector<String>& words);
+ enum class ElementsType { kAll, kOnlyNonEditable };
+ void removeSpellingAndGrammarMarkers(const HTMLElement&,
+ ElementsType = ElementsType::kAll);
void spellCheckAfterBlur();
void didEndEditingOnTextField(Element*);

Powered by Google App Engine
This is Rietveld 408576698