InputType attribute changed functions should happen after the attribute change
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Mar 2012 22:32:39 +0000 (22:32 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Mar 2012 22:32:39 +0000 (22:32 +0000)
https://bugs.webkit.org/show_bug.cgi?id=82644

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2012-03-29
Reviewed by Benjamin Poulain.

* html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::parseAttribute):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112589 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/html/HTMLInputElement.cpp

index db123d3..ef5dec8 100644 (file)
@@ -1,3 +1,13 @@
+2012-03-29  Joseph Pecoraro  <pecoraro@apple.com>
+
+        InputType attribute changed functions should happen after the attribute change
+        https://bugs.webkit.org/show_bug.cgi?id=82644
+
+        Reviewed by Benjamin Poulain.
+
+        * html/HTMLInputElement.cpp:
+        (WebCore::HTMLInputElement::parseAttribute):
+
 2012-03-29  Bear Travis  <betravis@adobe.com>
 
         Update CSS Exclusion wrap-flow values left & right to start & end
index ad4f38c..90e0d30 100644 (file)
@@ -771,11 +771,11 @@ void HTMLInputElement::parseAttribute(Attribute* attr)
     } else if (attr->name() == patternAttr || attr->name() == precisionAttr)
         setNeedsValidityCheck();
     else if (attr->name() == disabledAttr) {
-        m_inputType->disabledAttributeChanged();
         HTMLTextFormControlElement::parseAttribute(attr);
+        m_inputType->disabledAttributeChanged();
     } else if (attr->name() == readonlyAttr) {
-        m_inputType->readonlyAttributeChanged();
         HTMLTextFormControlElement::parseAttribute(attr);
+        m_inputType->readonlyAttributeChanged();
     }
 #if ENABLE(DATALIST)
     else if (attr->name() == listAttr)