WebCore:
authorbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Jan 2008 05:13:25 +0000 (05:13 +0000)
committerbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Jan 2008 05:13:25 +0000 (05:13 +0000)
commit42bf8f3e16178fd6c7f7e32869215f756d023a8b
treea65e50ab646c3e0042431e74313cc9206ca15fcb
parent2de939dab1fdc892d5dbd662cfc89daeaf133707
WebCore:

        Reviewed by Oliver.

        Fix for http://bugs.webkit.org/show_bug.cgi?id=16704 input with
        type="hidden" matches :enabled/:disabled (Acid3 bug)

        Prevent :enabled and :disabled from applying to input type="hidden"

        * css/CSSStyleSelector.cpp:
        (WebCore::CSSStyleSelector::checkOneSelector): Rather than
        allowing :enabled and :disabled to apply to all controls, only
        allow it to apply to non-"hidden" controls
        * dom/Element.h:
        (WebCore::Element::isInputTypeHidden):
        * html/HTMLInputElement.h:
        (WebCore::HTMLInputElement::isInputTypeHidden):

LayoutTests:

        Reviewed by Oliver.

        Test for http://bugs.webkit.org/show_bug.cgi?id=16704 input with
        type="hidden" matches :enabled/:disabled (Acid3 bug)

        * fast/forms/hidden-input-not-enabled-expected.txt: Added.
        * fast/forms/hidden-input-not-enabled.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29191 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/hidden-input-not-enabled-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/hidden-input-not-enabled.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/css/CSSStyleSelector.cpp
WebCore/dom/Element.h
WebCore/html/HTMLInputElement.h