Changing pseudoClass (:disabled) should cause distribution.
[WebKit-https.git] / Source / WebCore / ChangeLog
index 073bc0e..2a67c08 100644 (file)
@@ -1,3 +1,31 @@
+2012-11-14  Shinya Kawanaka  <shinyak@chromium.org> 
+
+        Changing pseudoClass (:disabled) should cause distribution.
+        https://bugs.webkit.org/show_bug.cgi?id=101901
+
+        Reviewed by Hajime Morita.
+
+        We have to invalidate distribution when pseudo-class (:disabled) is changed.
+
+        According to the HTML5 spec, :disabled will match button, input, select, textarea, optgroup,
+        option, command, li, and fieldset. However, command is not implemented yet, we skip li and command. li might
+        have 'disabled' state, but we need a command element to make it 'disabled' state.
+
+        Tests: fast/dom/shadow/pseudoclass-update-disabled-button.html
+               fast/dom/shadow/pseudoclass-update-disabled-fieldset.html
+               fast/dom/shadow/pseudoclass-update-disabled-input.html
+               fast/dom/shadow/pseudoclass-update-disabled-optgroup.html
+               fast/dom/shadow/pseudoclass-update-disabled-option.html
+               fast/dom/shadow/pseudoclass-update-disabled-select.html
+               fast/dom/shadow/pseudoclass-update-disabled-textarea.html
+
+        * html/HTMLFormControlElement.cpp:
+        (WebCore::HTMLFormControlElement::disabledAttributeChanged):
+        * html/HTMLOptGroupElement.cpp:
+        (WebCore::HTMLOptGroupElement::parseAttribute):
+        * html/HTMLOptionElement.cpp:
+        (WebCore::HTMLOptionElement::parseAttribute):
+
 2012-11-14  Sheriff Bot  <webkit.review.bot@gmail.com>
 
         Unreviewed, rolling out r134691, r134703, r134715, r134716,