Skip to content
  • mitz@apple.com's avatar
    WebCore: · cfd9b7b0
    mitz@apple.com authored
            Reviewed by Dave Hyatt.
    
            - make non-autowrapping text clear floats
    
            Test: fast/text/whitespace/nowrap-clear-float.html
    
            * rendering/RenderBlock.cpp:
            (WebCore::RenderBlock::nextFloatBottomBelow): Renamed nearestFloat() to
            this and changed to avoid comparing bottom to 0 in each iteration.
            (WebCore::RenderBlock::getClearDelta): Updated comment for the rename.
            * rendering/RenderBlock.h:
            * rendering/bidi.cpp:
            (WebCore::RenderBlock::fitBelowFloats): Added. Factored out of
            findNextLineBreak() and simplified.
            (WebCore::RenderBlock::findNextLineBreak): Changed to call
            fitBelowFloats(). Fixed the bug by trying to fit below floats in the
            case of non-wrapping text. Removed some redundancy.
    
    LayoutTests:
    
            Reviewed by Dave Hyatt.
    
            - test that non-autowrapping text clear floats
    
            * fast/text/whitespace/nowrap-clear-float.html: Added.
            * platform/mac-leopard/fast/text/whitespace: Added.
            * platform/mac-leopard/fast/text/whitespace/nowrap-clear-float-expected.checksum: Added.
            * platform/mac-leopard/fast/text/whitespace/nowrap-clear-float-expected.png: Added.
            * platform/mac/fast/text/whitespace/nowrap-clear-float-expected.txt: Added.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30530 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    cfd9b7b0