Skip to content
  • inferno@chromium.org's avatar
    2011-01-14 Abhishek Arya <inferno@chromium.org> · e3baac1e
    inferno@chromium.org authored
            Reviewed by David Hyatt.
    
            Fix parent block calculation when trying to find top most node
            containing "this" float.
            https://bugs.webkit.org/show_bug.cgi?id=51711
    
            Replace use of containingBlock and traverse the parents directly
            to check for float existence. containingBlock can skip parents and
            jump to the RenderView directly which will cause floats to not get
            cleared from intermediate parents.
    
            Test: fast/block/float/floats-not-cleared-crash.html
    
            * rendering/RenderBox.cpp:
            (WebCore::RenderBox::removeFloatingOrPositionedChildFromBlockLists):
    2011-01-14  Abhishek Arya  <inferno@chromium.org>
    
            Reviewed by Dave Hyatt.
    
            Tests that we do not crash due to uncleared floats in parent nodes.
            https://bugs.webkit.org/show_bug.cgi?id=51711
    
            * fast/block/float/floats-not-cleared-crash-expected.txt: Added.
            * fast/block/float/floats-not-cleared-crash.html: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75823 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    e3baac1e