Source/WebCore: Check that we do not need layout before trying to dirty
authorAbhishek Arya <inferno@chromium.org>
Wed, 10 Aug 2011 21:48:18 +0000 (21:48 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Thu, 11 Aug 2011 15:44:33 +0000 (12:44 -0300)
commita755bead1f11d4d721d7dee518c566345e6ea484
tree79d49fc7bf190a17c3a79204308e868509217aa5
parent8ed79cb10ca72b5d240beae674a7932963cbd007
Source/WebCore: Check that we do not need layout before trying to dirty
m_originatingLine for our floats.
https://bugs.webkit.org/show_bug.cgi?id=65938

Reviewed by Dave Hyatt.

Test: fast/block/float/float-originating-line-deleted-crash.html

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::removeFloatingObject):
(WebCore::RenderBlock::clearFloats):

LayoutTests: Tests that we do not crash when trying to access a removed
m_originatingLine for a float.
https://bugs.webkit.org/show_bug.cgi?id=65938

Reviewed by Dave Hyatt.

* fast/block/float/float-originating-line-deleted-crash-expected.txt: Added.
* fast/block/float/float-originating-line-deleted-crash.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@92798 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/block/float/float-originating-line-deleted-crash-expected.txt [new file with mode: 0644]
LayoutTests/fast/block/float/float-originating-line-deleted-crash.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderBlock.cpp