Commit backport by Michael Gilbert <michael.s.gilbert@gmail.com>
authorHuzaifa Sidhpurwala <huzaifas@redhat.com>
Mon, 7 Feb 2011 07:15:02 +0000 (12:45 +0530)
committerHuzaifa Sidhpurwala <huzaifas@redhat.com>
Mon, 7 Feb 2011 07:15:02 +0000 (12:45 +0530)
commitb005f36d1aba4adc9dd75277072e940a09214a75
tree3394ba3ece9eca61390c2e19066c0cd4d44e41ec
parent93d511d5d71bc8c29e0068d8b9855520e46e6315
Commit backport by Michael Gilbert <michael.s.gilbert@gmail.com>
Add test case. Skip non gtk ones

    Reviewed by Anders Carlsson.

    WebCore:

    Test: fast/inline/continuation-outlines-with-layers-2.html

    Continuation outlines are normally painted by the containing block. However, when the
    block and the inline are not enclosed by the same self-painting layer, the inline has to
    paint its own outlines. This was handled correctly only for the case where the inline had
    its own self-painting layer, but now when an ancestor inline had the self-painting layer.

    * rendering/InlineFlowBox.cpp:
    (WebCore::InlineFlowBox::paint): Instead of testing for having a self-painting layer, test
    whether any intermediate box between the inline and the containing block has a self-painting
    layer.
    * rendering/RenderBlock.cpp:
    (WebCore::RenderBlock::paintObject): Ditto.
    * rendering/RenderObject.cpp:
    (WebCore::RenderObject::enclosingBoxModelObject): Added this utility method.
    * rendering/RenderObject.h:

    LayoutTests:

    * fast/inline/continuation-outlines-with-layers-2.html: Added.

    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63048 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/fast/inline/continuation-outlines-with-layers-2.html [new file with mode: 0644]
WebCore/rendering/InlineFlowBox.cpp
WebCore/rendering/RenderBlock.cpp
WebCore/rendering/RenderObject.cpp
WebCore/rendering/RenderObject.h