WebCore:
authorbfulgham@webkit.org <bfulgham@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Jul 2009 19:51:15 +0000 (19:51 +0000)
committerbfulgham@webkit.org <bfulgham@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Jul 2009 19:51:15 +0000 (19:51 +0000)
commit09c1d1fec220f0c3bc3dea36adec2e227cab8284
treeca7041e2e2fe239876f279e525722c953fa1ced0
parent768997350e7901a756e01003a47accdc575b9647
WebCore:

2009-07-15  Kai Bruning  <kai@granus.net>

        Reviewed by Dave Hyatt.

        CSS21 attribute selectors not dynamic for xml.
        https://bugs.webkit.org/show_bug.cgi?id=25072

        Moved the relevant test in StyledElement::attributeChanged()
        to a new function Element::recalcStyleIfNeededAfterAttributeChanged()
        so it can be called from both StyledElement::attributeChanged()
        and Element::attributeChanged().
        Refactored Element::attributeChanged() into
        Element::updateAfterAttributeChanged() and
        Element::recalcStyleIfNeededAfterAttributeChanged(), which are called
        separately from StyledElement::attributeChanged().

        Test: fast/css/attribute-selector-dynamic.xml

        * dom/Element.cpp:
        (WebCore::Element::attributeChanged):
        (WebCore::Element::updateAfterAttributeChanged):
        (WebCore::Element::recalcStyleIfNeededAfterAttributeChanged):
        * dom/Element.h:
        * dom/StyledElement.cpp:
        (WebCore::StyledElement::attributeChanged):

LayoutTests:

2009-07-15  Kai Bruning  <kai@granus.net>

        Reviewed by Dave Hyatt.

        CSS21 attribute selectors not dynamic for xml.
        https://bugs.webkit.org/show_bug.cgi?id=25072

        Test that CSS21 attribute selectors take effect when the attribute is
        dynamically changed in an xml dom.

        * fast/css/attribute-selector-dynamic.xml: Added.
        * platform/mac/fast/css/attribute-selector-dynamic-expected.checksum: Added.
        * platform/mac/fast/css/attribute-selector-dynamic-expected.png: Added.
        * platform/mac/fast/css/attribute-selector-dynamic-expected.txt: Added.

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