WebCore:
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Nov 2007 21:03:35 +0000 (21:03 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Nov 2007 21:03:35 +0000 (21:03 +0000)
commit081af91bce6ae06316ede6cab81c7d67a94e1a6a
treea25f1ce9ce50ce037f756bf2819a93c8e734a3e9
parent9f5a4a849cdbc5f9cfed18aae0e75a80bb1623a5
WebCore:

        Reviewed by Antti Koivisto and Dave Hyatt.

        - fix <rdar://problem/5582961> Incorrect layout and floating object list corruption when CSS decreases a block's height

        Test: fast/block/float/overhanging-after-height-decrease.html

        * rendering/RenderBlock.cpp:
        (WebCore::RenderBlock::layoutBlock): If after calculating the height
        it turns out that there are overhanging floats that were not overhanging
        before, rescan children with overhanging floats and add them.
        (WebCore::RenderBlock::layoutBlockChildren): Added a parameter that
        returns the lowest float bottom of any of the children.
        (WebCore::RenderBlock::addOverhangingFloats): Changed to return the
        lowest float bottom.
        * rendering/RenderBlock.h:

LayoutTests:

        Reviewed by Antti Koivisto and Dave Hyatt.

        - test for <rdar://problem/5582961> Incorrect layout and floating object list corruption when CSS decreases a block's height

        * fast/block/float/overhanging-after-height-decrease.html: Added.
        * platform/mac-leopard/fast/block: Added.
        * platform/mac-leopard/fast/block/float: Added.
        * platform/mac-leopard/fast/block/float/overhanging-after-height-decrease-expected.checksum: Added.
        * platform/mac-leopard/fast/block/float/overhanging-after-height-decrease-expected.png: Added.
        * platform/mac/fast/block/float/overhanging-after-height-decrease-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27486 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/block/float/overhanging-after-height-decrease.html [new file with mode: 0644]
LayoutTests/platform/mac-leopard/fast/block/float/overhanging-after-height-decrease-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac-leopard/fast/block/float/overhanging-after-height-decrease-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/block/float/overhanging-after-height-decrease-expected.txt [new file with mode: 0644]
WebCore/ChangeLog
WebCore/rendering/RenderBlock.cpp
WebCore/rendering/RenderBlock.h