REGRESSION(r143102): iframe with percentage height within table with anonymous cell fails.
https://bugs.webkit.org/show_bug.cgi?id=113077 Source/WebCore: Patch by Zalan Bujtas <firstname.lastname@example.org> on 2013-03-27 Reviewed by Antti Koivisto. http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level "Anonymous block boxes are ignored when resolving percentage values that would refer to it: the closest non-anonymous ancestor box is used instead." When figuring out whether auto height needs to be applied on the current box, ignore anonymous ancestors until the first non-anonymous containing block is found. This matches both Firefox and Opera behaviour. Test: fast/replaced/iframe-with-percentage-height-within-table-with-anonymous-table-cell.html * rendering/RenderBoxModelObject.cpp: (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): Switch from isAnonymousBlock() to isAnonymous() to make sure all anonymous boxes are ignored. Remove isTableCell() check which is a noop as table cell isn't an anonymous block. LayoutTests: Patch by Zalan Bujtas <email@example.com> on 2013-03-27 Reviewed by Antti Koivisto. * fast/replaced/iframe-with-percentage-height-within-table-with-anonymous-table-cell-expected.txt: Added. * fast/replaced/iframe-with-percentage-height-within-table-with-anonymous-table-cell.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147021 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Showing with 112 additions and 4 deletions
LayoutTests/fast/replaced/iframe-with-percentage-height-within-table-with-anonymous-table-cell-expected.txt 0 → 100644
LayoutTests/fast/replaced/iframe-with-percentage-height-within-table-with-anonymous-table-cell.html 0 → 100644