LayoutTests:
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 May 2006 06:46:08 +0000 (06:46 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 May 2006 06:46:08 +0000 (06:46 +0000)
commit779494abf27567aadc759fb75cc904ccd0ea2d91
treec192f64cdf1cfc7251b7cc53d6aab89ef5e6931a
parent9a7369fd9eb685cd52dd6142c0c5956240c003d5
LayoutTests:

        Reviewed by Maciej.

        Test for http://bugzilla.opendarwin.org/show_bug.cgi?id=7492
        CSS attribute selectors fail when the setAttribute() method is used
        to create an attribute and the attribute name is not Class or ID.

        * fast/css/selector-set-attribute.html: Added.
        * fast/css/selector-set-attribute-expected.txt: Added.
        * fast/css/selector-set-attribute-expected.checksum: Added.
        * fast/css/selector-set-attribute-expected.png: Added.

WebCore:

        Reviewed by Maciej.

        Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=7492
        CSS attribute selectors fail when the setAttribute() method is used
        to create an attribute and the attribute name is not Class or ID.

        Keep track of attributes used in attribute selectors to
        check after setAttribute whether a style recalc is needed.

        Test: fast/css/selector-set-attribute.html

        * css/cssstyleselector.cpp:
        (WebCore::CSSStyleSelector::checkOneSelector):
        (WebCore::CSSStyleSelector::hasSelectorForAttribute):
        * css/cssstyleselector.h:
        * dom/StyledElement.cpp:
        (WebCore::StyledElement::attributeChanged):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14433 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/selector-set-attribute-expected.checksum [new file with mode: 0644]
LayoutTests/fast/css/selector-set-attribute-expected.png [new file with mode: 0644]
LayoutTests/fast/css/selector-set-attribute-expected.txt [new file with mode: 0644]
LayoutTests/fast/css/selector-set-attribute.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/css/cssstyleselector.cpp
WebCore/css/cssstyleselector.h
WebCore/dom/StyledElement.cpp