2010-06-11 Maciej Stachowiak <mjs@apple.com>
authormjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 12 Jun 2010 01:28:18 +0000 (01:28 +0000)
committermjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 12 Jun 2010 01:28:18 +0000 (01:28 +0000)
commit56ef401af95fee7b720572e7fec8b6e5796b24c6
tree8ab1a7349654ad7744eba639ba8ab04314f198bb
parent9e86336198e9098eceea1aeebb3d45f2f419d5bf
2010-06-11  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Ojan Vafai.

        Implement HTML5 hidden attribute
        https://bugs.webkit.org/show_bug.cgi?id=40511

        Test: fast/html/hidden-attr.html

        Note: I used the mapped attribute mechanism for this instead of a rule in the UA stylesheet
        to avoid a performance hit from adding a global attribute rule to the UA stylesheet.

        * html/HTMLElement.cpp:
        (WebCore::HTMLElement::mapToEntry): Pick up hidden as a global mapped attribute.
        (WebCore::HTMLElement::parseMappedAttribute): Map hidden attribute to display: none.
2010-06-11  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Ojan Vafai.

        Implement HTML5 hidden attribute
        https://bugs.webkit.org/show_bug.cgi?id=40511

        * fast/html/hidden-attr-expected.txt: Added.
        * fast/html/hidden-attr.html: Added. Test static and dynamic cases of hidden attribute.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@61052 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/html/hidden-attr-expected.txt [new file with mode: 0644]
LayoutTests/fast/html/hidden-attr.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/HTMLElement.cpp