LayoutTests:
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 21 Jan 2006 20:02:37 +0000 (20:02 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 21 Jan 2006 20:02:37 +0000 (20:02 +0000)
commit73342cabff5c7002956019b84a0f82d115ede8b9
treeb1ca878c4508fceac2844edde5109d050a5e482b
parenta1bc644534d2c840a116a54a39597393ee3eb89e
LayoutTests:

        Reviewed by Darin.

        - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=5983
          REGRESSION: onmouseover-powered navbar at MacNN renders incorrectly

        * fast/dynamic/hovered-detach.html: Added.
        * fast/dynamic/hovered-detach-expected.txt: Added.

WebCore:

        Test: fast/dynamic/hovered-detach.html

        Reviewed by Darin.

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=5983
          REGRESSION: onmouseover-powered navbar at MacNN renders incorrectly

        * khtml/xml/NodeImpl.cpp:
        (WebCore::NodeImpl::detach): Set m_hovered to false and set the document's
        hoverNode to an hovered ancestor that still has a renderer.
        * rendering/render_layer.cpp: Changed static method hoverAncestor() into a
        RenderObject instance method.
        (WebCore::commonAncestor):
        (WebCore::RenderLayer::updateHoverActiveState):
        * rendering/render_object.cpp: Ditto.
        (WebCore::RenderObject::hoverAncestor)
        * rendering/render_object.h: Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@12273 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dynamic/hovered-detach-expected.txt [new file with mode: 0644]
LayoutTests/fast/dynamic/hovered-detach.html [new file with mode: 0644]
LayoutTests/fast/inspector/matchedrules-expected.checksum [new file with mode: 0644]
LayoutTests/fast/inspector/matchedrules-expected.png [new file with mode: 0644]
WebCore/ChangeLog
WebCore/khtml/xml/NodeImpl.cpp
WebCore/rendering/render_layer.cpp
WebCore/rendering/render_object.cpp
WebCore/rendering/render_object.h