Changeset 147021 in webkit
- Timestamp:
- Mar 27, 2013 4:59:52 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r147020 r147021 1 2013-03-27 Zalan Bujtas <zalan@apple.com> 2 3 REGRESSION(r143102): iframe with percentage height within table with anonymous cell fails. 4 https://bugs.webkit.org/show_bug.cgi?id=113077 5 6 Reviewed by Antti Koivisto. 7 8 * fast/replaced/iframe-with-percentage-height-within-table-with-anonymous-table-cell-expected.txt: Added. 9 * fast/replaced/iframe-with-percentage-height-within-table-with-anonymous-table-cell.html: Added. 10 1 11 2013-03-27 Pierre Rossi <pierre.rossi@gmail.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r147020 r147021 1 2013-03-27 Zalan Bujtas <zalan@apple.com> 2 3 REGRESSION(r143102): iframe with percentage height within table with anonymous cell fails. 4 https://bugs.webkit.org/show_bug.cgi?id=113077 5 6 Reviewed by Antti Koivisto. 7 8 http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level 9 "Anonymous block boxes are ignored when resolving percentage values that would refer to it: 10 the closest non-anonymous ancestor box is used instead." 11 When figuring out whether auto height needs to be applied on the current box, ignore anonymous 12 ancestors until the first non-anonymous containing block is found. This matches both 13 Firefox and Opera behaviour. 14 15 Test: fast/replaced/iframe-with-percentage-height-within-table-with-anonymous-table-cell.html 16 17 * rendering/RenderBoxModelObject.cpp: 18 (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): Switch from 19 isAnonymousBlock() to isAnonymous() to make sure all anonymous boxes are ignored. 20 Remove isTableCell() check which is a noop as table cell isn't an anonymous block. 21 1 22 2013-03-27 Pierre Rossi <pierre.rossi@gmail.com> 2 23 -
trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp
r145913 r147021 381 381 return false; 382 382 383 // Anonymous block boxes are ignored when resolving percentage values that would refer to it: 384 // the closest non-anonymous ancestor box is used instead. 383 385 RenderBlock* cb = containingBlock(); 384 while (cb->isAnonymousBlock()) { 385 if (cb->isTableCell()) 386 return true; 386 while (cb->isAnonymous()) 387 387 cb = cb->containingBlock(); 388 }389 388 390 389 if (!cb->style()->logicalHeight().isAuto() || (!cb->style()->logicalTop().isAuto() && !cb->style()->logicalBottom().isAuto()))
Note: See TracChangeset
for help on using the changeset viewer.