LayoutTests:
authorantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Jul 2007 13:42:11 +0000 (13:42 +0000)
committerantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Jul 2007 13:42:11 +0000 (13:42 +0000)
commit1849687b3d9e0d2dca58ddbebb492d8112e9dfa5
tree76dc87ffba88aa271c714735456bc7c7539ad9be
parentf15211af24967e39867388d4645635156ce59734
LayoutTests:

        Reviewed by Maciej.

        Test for REGRESSION: misplaced selection ring remains after link is no longer focused.
        <rdar://problem/5205580>

        * fast/repaint/focus-layers-expected.checksum: Added.
        * fast/repaint/focus-layers-expected.png: Added.
        * fast/repaint/focus-layers-expected.txt: Added.
        * fast/repaint/focus-layers.html: Added.

WebCore:

        Reviewed by Maciej.

        REGRESSION: misplaced selection ring remains after link is no longer focused.
        <rdar://problem/5205580>

        Fix placement of selection ring when part of the ring is in a different layer.

        * rendering/RenderFlow.cpp:
        (WebCore::RenderFlow::addFocusRingRects): Get coordinates right when moving to a different layer.
        * rendering/RenderObject.cpp:
        (WebCore::RenderObject::setStyle):
        Don't reset state variables when not necessary.  When repaint() was called at the end of setSyle() it would
        get repaint rects wrong in some cases.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23944 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/repaint/focus-layers-expected.checksum [new file with mode: 0644]
LayoutTests/fast/repaint/focus-layers-expected.png [new file with mode: 0644]
LayoutTests/fast/repaint/focus-layers-expected.txt [new file with mode: 0644]
LayoutTests/fast/repaint/focus-layers.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/rendering/RenderFlow.cpp
WebCore/rendering/RenderObject.cpp