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

Unified Diff: third_party/WebKit/Source/core/html/HTMLElement.cpp

Issue 2669213002: Remove spelling markers in disabled and readonly form elements
Patch Set: Using idle task to remove the markers Created 3 years, 10 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/html/HTMLElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLElement.cpp b/third_party/WebKit/Source/core/html/HTMLElement.cpp
index f032cf0e675232a03d5e1cf8cd1ca893be0aed15..0631596c6fbddbc193d14bfe86c7f4038ab2efe9 100644
--- a/third_party/WebKit/Source/core/html/HTMLElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLElement.cpp
@@ -430,10 +430,8 @@ void HTMLElement::attributeChanged(const AttributeModificationParams& params) {
if (adjustedFocusedElementInTreeScope() == this)
blur();
} else if (params.name == contenteditableAttr) {
- if (document().frame()) {
- document().frame()->spellChecker().removeSpellingAndGrammarMarkers(
- *this, SpellChecker::ElementsType::kOnlyNonEditable);
- }
+ if (document().frame())
+ document().frame()->spellChecker().cancelCheck();
Xiaocheng 2017/03/03 18:24:06 SpellChecker::cancelCheck is not the right functio
if (adjustedFocusedElementInTreeScope() != this)
return;
// The attribute change may cause supportsFocus() to return false

Powered by Google App Engine
This is Rietveld 408576698