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

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

Issue 2093383002: Implement disabledAttributeChanged() in HTMLInputElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add test file. Created 4 years, 6 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/html/HTMLInputElement.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/html/HTMLInputElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
index 1e3cf9fb3148968f90afeaf2ccecffffa97941c8..c5c16079731605423fc446c27d35c8d41d289692 100644
--- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
@@ -744,9 +744,6 @@ void HTMLInputElement::parseAttribute(const QualifiedName& name, const AtomicStr
} else if (name == patternAttr) {
setNeedsValidityCheck();
UseCounter::count(document(), UseCounter::PatternAttribute);
- } else if (name == disabledAttr) {
- HTMLTextFormControlElement::parseAttribute(name, oldValue, value);
- m_inputTypeView->disabledAttributeChanged();
} else if (name == readonlyAttr) {
HTMLTextFormControlElement::parseAttribute(name, oldValue, value);
m_inputTypeView->readonlyAttributeChanged();
@@ -1533,6 +1530,12 @@ void HTMLInputElement::requiredAttributeChanged()
m_inputTypeView->requiredAttributeChanged();
}
+void HTMLInputElement::disabledAttributeChanged()
+{
+ HTMLTextFormControlElement::disabledAttributeChanged();
+ m_inputTypeView->disabledAttributeChanged();
+}
+
void HTMLInputElement::selectColorInColorChooser(const Color& color)
{
if (ColorChooserClient* client = m_inputType->colorChooserClient())
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLInputElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698