WebCore:
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Nov 2007 18:52:09 +0000 (18:52 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Nov 2007 18:52:09 +0000 (18:52 +0000)
commit2bdf68356b67be3e411bc9522c84d4bb20eb2932
treeb564109b916947a9c3c3726e37aa9ea38cfa68ee
parentaf042f8f604255dd44fcf307e38428292f4ae97a
WebCore:

        Reviewed by Darin Adler.

        - fix a bug where CSS rules with :hover in the ancestor chain stopped
          working after changing the inline style declaration of the ancestor

        Test: fast/css/affected-by-hover-after-style-change.html

        * dom/Element.cpp:
        (WebCore::Element::recalcStyle): If we are not forcing style
        recalculation for all descendants, preserve any "affected by
        {hover|active|drag} bits that we may have acquired from them.
        Also renamed _style to currentStyle.

WebKitSite:

        Reviewed by Darin Adler.

        - removed a workaround for the bug fixed in the WebCore part of this
          patch

        * misc/DatabaseExample.html:

LayoutTests:

        Reviewed by Darin Adler.

        - test that CSS rules with :hover in the ancestor chain continue to work
          after changing the inline style declaration of the ancestor

        * fast/css/affected-by-hover-after-style-change.html: Added.
        * platform/mac/fast/css/affected-by-hover-after-style-change-expected.checksum: Added.
        * platform/mac/fast/css/affected-by-hover-after-style-change-expected.png: Added.
        * platform/mac/fast/css/affected-by-hover-after-style-change-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27576 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/affected-by-hover-after-style-change.html [new file with mode: 0644]
LayoutTests/platform/mac/fast/css/affected-by-hover-after-style-change-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/fast/css/affected-by-hover-after-style-change-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/css/affected-by-hover-after-style-change-expected.txt [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/Element.cpp
WebKitSite/ChangeLog
WebKitSite/misc/DatabaseExample.html