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

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

Issue 2669213002: Remove spelling markers in disabled and readonly form elements
Patch Set: 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/html/HTMLFormControlElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp b/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
index fdbe2cb92558dd4df9696321d76e20450e06b0ae..666577b083da76dfda3c72dd176f061dd4814872 100644
--- a/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
@@ -145,6 +145,9 @@ void HTMLFormControlElement::attributeChanged(
if (params.reason == AttributeModificationReason::kDirectly &&
isDisabledFormControl() && adjustedFocusedElementInTreeScope() == this)
blur();
+ } else if (params.name == readonlyAttr &&
tkent 2017/02/03 00:09:58 I think no reason to handle this in HTMLFormContro
+ params.oldValue.isNull() != params.newValue.isNull()) {
+ readonlyAttributeChanged();
}
}

Powered by Google App Engine
This is Rietveld 408576698