Changeset 151554 in webkit
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r151551 r151554 1 2013-06-13 Anton Obzhirov <a.obzhirov@samsung.com> 2 3 [CSS Regions] Regions auto-height and absolute positioning bug 4 https://bugs.webkit.org/show_bug.cgi?id=111092 5 6 Reviewed by David Hyatt. 7 8 During last layout that should update the auto-height regions new auto-height region height 9 is calculated correctly based on the text content, but it requires extra step 10 to reposition the render block after new logical height is set (correct logical height becomes 11 available only during last layout). 12 13 Tests: fast/regions/autoheight-abspos-bottom-align.html 14 15 * rendering/RenderRegion.cpp: 16 (WebCore::RenderRegion::updateLogicalHeight): 17 1 18 2013-06-13 Brent Fulgham <bfulgham@webkit.org> 2 19 -
trunk/Source/WebCore/rendering/RenderRegion.cpp
r151475 r151554 667 667 LayoutUnit newLogicalHeight = overrideLogicalContentHeight() + borderAndPaddingLogicalHeight(); 668 668 ASSERT(newLogicalHeight < LayoutUnit::max() / 2); 669 if (newLogicalHeight > logicalHeight()) 669 if (newLogicalHeight > logicalHeight()) { 670 670 setLogicalHeight(newLogicalHeight); 671 // Recalculate position of the render block after new logical height is set. 672 // (needed in absolute positioning case with bottom alignment for example) 673 RenderBlock::updateLogicalHeight(); 674 } 671 675 } 672 676
Note: See TracChangeset
for help on using the changeset viewer.