Changeset 142659 in webkit
- Timestamp:
- Feb 12, 2013 1:06:07 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r142658 r142659 1 2013-02-12 Robert Hogan <robert@webkit.org> 2 3 REGRESSION(r136967): Combination of float and clear yields to bad layout 4 https://bugs.webkit.org/show_bug.cgi?id=109476 5 6 Reviewed by Levi Weintraub. 7 8 * fast/block/margin-collapse/self-collapsing-block-with-float-children-expected.txt: Added. 9 * fast/block/margin-collapse/self-collapsing-block-with-float-children.html: Added. 10 1 11 2013-02-12 Emil A Eklund <eae@chromium.org> 2 12 -
trunk/Source/WebCore/ChangeLog
r142657 r142659 1 2013-02-12 Robert Hogan <robert@webkit.org> 2 3 REGRESSION(r136967): Combination of float and clear yields to bad layout 4 https://bugs.webkit.org/show_bug.cgi?id=109476 5 6 Reviewed by Levi Weintraub. 7 8 Test: fast/block/margin-collapse/self-collapsing-block-with-float-children.html 9 10 The change made at http://trac.webkit.org/changeset/136967 only needs to worry about the first floated 11 child of a self-collapsing block. The ones that follow are not affected by its margins. 12 13 * rendering/RenderBlockLineLayout.cpp: 14 (WebCore::RenderBlock::LineBreaker::skipLeadingWhitespace): 15 1 16 2013-02-12 Levi Weintraub <leviw@chromium.org> 2 17 -
trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp
r142434 r142659 2282 2282 } else if (object->isFloating()) { 2283 2283 // The top margin edge of a self-collapsing block that clears a float intrudes up into it by the height of the margin, 2284 // so in order to place this child float at the top content edge of the self-collapsing block add the margin back in before placement.2285 LayoutUnit marginOffset = ( m_block->isSelfCollapsingBlock() && m_block->style()->clear() && m_block->getClearDelta(m_block, LayoutUnit())) ? m_block->collapsedMarginBeforeForChild(m_block) : LayoutUnit();2284 // so in order to place this first child float at the top content edge of the self-collapsing block add the margin back in before placement. 2285 LayoutUnit marginOffset = (!object->previousSibling() && m_block->isSelfCollapsingBlock() && m_block->style()->clear() && m_block->getClearDelta(m_block, LayoutUnit())) ? m_block->collapsedMarginBeforeForChild(m_block) : LayoutUnit(); 2286 2286 LayoutUnit oldLogicalHeight = m_block->logicalHeight(); 2287 2287 m_block->setLogicalHeight(oldLogicalHeight + marginOffset);
Note: See TracChangeset
for help on using the changeset viewer.