WebCore:
authorhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Jan 2008 21:19:30 +0000 (21:19 +0000)
committerhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Jan 2008 21:19:30 +0000 (21:19 +0000)
commit5f322c6317e784088ca7caa54e2af5d9d4c5ba6f
tree6e854c87babede070ee75009a9cdfd96d77ce770
parent8b916f9b380a2fb27786df4905b01729611e7c49
WebCore:

        Fix for http://bugs.webkit.org/show_bug.cgi?id=16935

        Fix a bug in layers where the positioned ancestor was being computed incorrectly (the root should not
        automatically be included).

        Reviewed by olliej

        Added fast/layers/positioned-inside-root-with-margins.html

        * rendering/RenderLayer.cpp:
        (WebCore::RenderLayer::stackingContext):
        (WebCore::RenderLayer::enclosingPositionedAncestor):

LayoutTests:

        http://bugs.webkit.org/show_bug.cgi?id=16935

        Reviewed by olliej

        * fast/layers/positioned-inside-root-with-margins.html: Added.
        * platform/mac/fast/layers/positioned-inside-root-with-margins-expected.checksum: Added.
        * platform/mac/fast/layers/positioned-inside-root-with-margins-expected.png: Added.
        * platform/mac/fast/layers/positioned-inside-root-with-margins-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29696 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/layers/positioned-inside-root-with-margins.html [new file with mode: 0644]
LayoutTests/platform/mac/fast/layers/positioned-inside-root-with-margins-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/fast/layers/positioned-inside-root-with-margins-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/layers/positioned-inside-root-with-margins-expected.txt [new file with mode: 0644]
WebCore/ChangeLog
WebCore/rendering/RenderLayer.cpp