ASSERTION FAILED: layoutState->m_renderer == this in WebCore::RenderBlock::offsetFrom...
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 30 Nov 2016 23:12:45 +0000 (23:12 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 30 Nov 2016 23:12:45 +0000 (23:12 +0000)
commitc4a423075f4bbab27e880c7c68d642d374c19f77
treeffb6c6924324482c3828db75958916525e53d020
parent75e4453e1526f5b93a2d15bd4de759b7fa65e0d1
ASSERTION FAILED: layoutState->m_renderer == this in WebCore::RenderBlock::offsetFromLogicalTopOfFirstPage
https://bugs.webkit.org/show_bug.cgi?id=155364
<rdar://problem/27720461>

Reviewed by David Hyatt.

Source/WebCore:

RenderNamedFlowThread is considered to be a root for the current renderer context so
we need to bail out from the containing block traversal here (like we do for the RenderView).

Test: fast/replaced/replaced-element-with-percentage-width-inside-flow-asserts.html

* rendering/RenderBox.cpp:
(WebCore::RenderBox::computeReplacedLogicalHeightUsing):

LayoutTests:

* fast/replaced/replaced-element-with-percentage-width-inside-flow-asserts-expected.txt: Added.
* fast/replaced/replaced-element-with-percentage-width-inside-flow-asserts.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@209158 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/replaced/replaced-element-with-percentage-width-inside-flow-asserts-expected.txt [new file with mode: 0644]
LayoutTests/fast/replaced/replaced-element-with-percentage-width-inside-flow-asserts.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderBox.cpp