Crash in RenderBlock::addChildIgnoringAnonymousColumnBlocks.
authorinferno@chromium.org <inferno@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Feb 2012 05:36:11 +0000 (05:36 +0000)
committerinferno@chromium.org <inferno@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Feb 2012 05:36:11 +0000 (05:36 +0000)
commit380503df0db6e674b4db07cb053265f79661f337
treee11b6757f7c91abf35ef674e21c57675a18ad6f2
parent6acf93f4bcddb0a586ec7841aba893c089bac13d
Crash in RenderBlock::addChildIgnoringAnonymousColumnBlocks.
https://bugs.webkit.org/show_bug.cgi?id=79043

Reviewed by Julien Chaffraix.

Source/WebCore:

Tests: fast/runin/runin-div-before-child.html
       fast/runin/runin-table-before-child.html

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::addChildIgnoringAnonymousColumnBlocks): handle
the case of run-in elements and strengthen code to handle cases where
beforeChild is incorrectly set.
* rendering/RenderObject.h: remove anonymousContainer function since
the new logic in RenderBlock does not need it.

LayoutTests:

* fast/runin/runin-div-before-child-expected.png: Added.
* fast/runin/runin-div-before-child-expected.txt: Added.
* fast/runin/runin-div-before-child.html: Added.
* fast/runin/runin-table-before-child-expected.png: Added.
* fast/runin/runin-table-before-child-expected.txt: Added.
* fast/runin/runin-table-before-child.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108606 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/runin/runin-div-before-child-expected.png [new file with mode: 0644]
LayoutTests/fast/runin/runin-div-before-child-expected.txt [new file with mode: 0644]
LayoutTests/fast/runin/runin-div-before-child.html [new file with mode: 0755]
LayoutTests/fast/runin/runin-table-before-child-expected.png [new file with mode: 0644]
LayoutTests/fast/runin/runin-table-before-child-expected.txt [new file with mode: 0644]
LayoutTests/fast/runin/runin-table-before-child.html [new file with mode: 0755]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderBlock.cpp
Source/WebCore/rendering/RenderObject.h