WebCore:
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Nov 2007 20:03:17 +0000 (20:03 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Nov 2007 20:03:17 +0000 (20:03 +0000)
commitedd369d29cd3b7abd70ab68319f7b837938fa809
treeb6308369d4601cf3a5c0be98d3c83d6a639584b8
parent761a1087571d070e2e97186a2d072ba5d5429be4
WebCore:

        Reviewed by Antti Koivisto.

        - fix a bug in invisible layer culling: dynamically changing a
          descendant of an invisible layer to be visible did not work

        Test: fast/layers/layer-content-visibility-change.html

        * rendering/RenderLayer.cpp:
        (WebCore::RenderLayer::setHasVisibleContent): If we got visible content,
        make sure that our stacking context rebuilds its z-order lists to
        include us.

LayoutTests:

        Reviewed by Antti Koivisto.

        - test that dynamically changing a descendant of an invisible layer to
          be visible works

        * fast/layers/layer-content-visibility-change.html: Added.
        * platform/mac/fast/layers/layer-content-visibility-change-expected.checksum: Added.
        * platform/mac/fast/layers/layer-content-visibility-change-expected.png: Added.
        * platform/mac/fast/layers/layer-content-visibility-change-expected.txt: Added.

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