WebCore:
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Dec 2007 00:11:46 +0000 (00:11 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Dec 2007 00:11:46 +0000 (00:11 +0000)
commit001a4884abfa9e73e4c346914cb766da3c8543dd
treed27061f6b8fbc489fb484c3d77b4c28af7d4e236
parenta54947317d36a6524b52fb2ec007ab85a0405ae4
WebCore:

        Reviewed by Dave Hyatt and Sam Weinig.

        - fix <rdar://problem/5605937> Inspector: Disclosure triangle not drawn in node's properties panel until click

        Test: fast/layers/add-layer-with-nested-stacking.html
        Test: fast/layers/remove-layer-with-nested-stacking.html

        * rendering/RenderLayer.cpp:
        (WebCore::RenderLayer::addChild): If the new child is overflow-only
        but has children of its own, dirty the stacking context's z-order lists
        since the grandchildren might need to be in them.
        (WebCore::RenderLayer::removeChild): Similarly for the old child.

LayoutTests:

        Reviewed by Dave Hyatt and Sam Weinig.

        - pixel tests for <rdar://problem/5605937> Inspector: Disclosure triangle not drawn in node's properties panel until click

        * fast/layers/add-layer-with-nested-stacking.html: Added.
        * fast/layers/remove-layer-with-nested-stacking.html: Added.
        * platform/mac/fast/layers/add-layer-with-nested-stacking-expected.checksum: Added.
        * platform/mac/fast/layers/add-layer-with-nested-stacking-expected.png: Added.
        * platform/mac/fast/layers/add-layer-with-nested-stacking-expected.txt: Added.
        * platform/mac/fast/layers/remove-layer-with-nested-stacking-expected.checksum: Added.
        * platform/mac/fast/layers/remove-layer-with-nested-stacking-expected.png: Added.
        * platform/mac/fast/layers/remove-layer-with-nested-stacking-expected.txt: Added.

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