LayoutTests:
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 Jun 2006 17:24:41 +0000 (17:24 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 Jun 2006 17:24:41 +0000 (17:24 +0000)
commit451a2584e171d918a7a5ed581f920bd67f0fc0fb
treebd176ca6bf5257b5070954aa750eefbb6f3548b0
parentad58b9672fabef17da12601c6374503ea099915a
LayoutTests:

        Reviewed by Hyatt.

        - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=3379
          attr(X) does not work

        * fast/css-generated-content/016-expected.checksum: Added.
        * fast/css-generated-content/016-expected.png: Added.
        * fast/css-generated-content/016-expected.txt: Added.
        * fast/css-generated-content/016.html: Added.

WebCore:

        Reviewed by Hyatt.

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=3379
          attr(X) does not work

        Test: fast/css-generated-content/016.html

        * css/cssstyleselector.cpp:
        (WebCore::CSSStyleSelector::canShareStyleWithElement): Don't share style
        if the unique bit is set.
        (WebCore::CSSStyleSelector::applyProperty): When applying the "attr" property,
        set the unique bit and add to m_selectorAttrs.

        * rendering/render_style.cpp: Did a lot of reformatting, and this one real change.
        (WebCore::RenderStyle::RenderStyle): Initialize m_unique to false.

        * rendering/render_style.h:
        (WebCore::RenderStyle::unique): Added. Returns value of m_unique.
        (WebCore::RenderStyle::setUnique): Added. Sets m_unique.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14687 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css-generated-content/016-expected.checksum [new file with mode: 0644]
LayoutTests/fast/css-generated-content/016-expected.png [new file with mode: 0644]
LayoutTests/fast/css-generated-content/016-expected.txt [new file with mode: 0644]
LayoutTests/fast/css-generated-content/016.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/css/cssstyleselector.cpp
WebCore/rendering/render_style.cpp
WebCore/rendering/render_style.h