WebCore:
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 May 2008 16:27:51 +0000 (16:27 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 May 2008 16:27:51 +0000 (16:27 +0000)
commit528b78cda6ce8ea2f42554b80881ee97c9722acb
tree168e2f759029490afb597bc5d72c39574dbffbdb
parentbae17f1a173e2a3ebfb5a7ceecc9ab515859807e
WebCore:

        Reviewed by Dave Hyatt.

        - fix https://bugs.webkit.org/show_bug.cgi?id=18809
          Forms with block level generated content and absolutely positioned labels break inline layout (fixed on reflow)

        Test: fast/block/basic/adding-near-anonymous-block.html

        * rendering/RenderBlock.cpp:
        (WebCore::RenderBlock::addChildToFlow): When adding a floating or
        positioned object, if it follows an anonymous block, put it
        inside the anonymous block. When adding an inline, check if it comes
        after an anonymous block and put it in the anonymous block.

LayoutTests:

        Reviewed by Dave Hyatt.

        - test, updated test and updated results for https://bugs.webkit.org/show_bug.cgi?id=18809
          Forms with block level generated content and absolutely positioned labels break inline layout (fixed on reflow)

        * fast/block/basic/adding-near-anonymous-block.html: Added.
        * media/video-controls-rendering.html: Changed to work around
        https://bugs.webkit.org/show_bug.cgi?id=18857 which now affects this
        test in its original form.
        * platform/mac/css1/box_properties/clear-expected.txt:
        * platform/mac/fast/block/basic/adding-near-anonymous-block-expected.checksum: Added.
        * platform/mac/fast/block/basic/adding-near-anonymous-block-expected.png: Added.
        * platform/mac/fast/block/basic/adding-near-anonymous-block-expected.txt: Added.
        * platform/mac/fast/forms/input-align-image-expected.txt:
        * platform/mac/media/audio-controls-rendering-expected.txt:
        * platform/mac/media/video-controls-rendering-expected.txt:
        * platform/mac/tables/mozilla/bugs/bug51140-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@32872 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/block/basic/adding-near-anonymous-block.html [new file with mode: 0644]
LayoutTests/media/video-controls-rendering.html
LayoutTests/platform/mac/css1/box_properties/clear-expected.txt
LayoutTests/platform/mac/fast/block/basic/adding-near-anonymous-block-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/fast/block/basic/adding-near-anonymous-block-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/block/basic/adding-near-anonymous-block-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/fast/forms/input-align-image-expected.txt
LayoutTests/platform/mac/media/audio-controls-rendering-expected.txt
LayoutTests/platform/mac/media/video-controls-rendering-expected.txt
LayoutTests/platform/mac/tables/mozilla/bugs/bug51140-expected.txt
WebCore/ChangeLog
WebCore/rendering/RenderBlock.cpp