Changeset 178045 in webkit
- Timestamp:
- Jan 7, 2015 12:13:07 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r178040 r178045 1 2015-01-07 Bem Jones-Bey <bjonesbe@adobe.com> 2 3 [CSS Shapes] Content does not wrap with overflow: hidden and reference box different from margin-box 4 https://bugs.webkit.org/show_bug.cgi?id=138139 5 6 Reviewed by David Hyatt. 7 8 * fast/shapes/shape-outside-floats/shape-overflow-hidden-expected.html: Added. 9 * fast/shapes/shape-outside-floats/shape-overflow-hidden-left-margin-expected.html: Added. 10 * fast/shapes/shape-outside-floats/shape-overflow-hidden-left-margin.html: Added. 11 * fast/shapes/shape-outside-floats/shape-overflow-hidden-right-margin-expected.html: Added. 12 * fast/shapes/shape-outside-floats/shape-overflow-hidden-right-margin.html: Added. 13 * fast/shapes/shape-outside-floats/shape-overflow-hidden.html: Added. 14 1 15 2015-01-07 Eric Carlson <eric.carlson@apple.com> 2 16 -
trunk/Source/WebCore/ChangeLog
r178042 r178045 1 2015-01-07 Bem Jones-Bey <bjonesbe@adobe.com> 2 3 [CSS Shapes] Content does not wrap with overflow: hidden and reference box different from margin-box 4 https://bugs.webkit.org/show_bug.cgi?id=138139 5 6 Reviewed by David Hyatt. 7 8 To determine how much an box needs to shink to avoid a float, the code 9 was only taking into account the first line of the box. This doesn't 10 work when the float has a shape, as it can make it seem like there is 11 more space on the line than there actually is. This patch changes the 12 calculations to take into account the entire height of the box that 13 needs to be shrunk, and thus computes the correct amount of space 14 available. 15 16 Test: fast/shapes/shape-outside-floats/shape-overflow-hidden-left-margin.html 17 fast/shapes/shape-outside-floats/shape-overflow-hidden-right-margin.html 18 fast/shapes/shape-outside-floats/shape-overflow-hidden.html 19 20 * rendering/RenderBox.cpp: 21 (WebCore::RenderBox::shrinkLogicalWidthToAvoidFloats): 22 1 23 2015-01-07 Commit Queue <commit-queue@webkit.org> 2 24 -
trunk/Source/WebCore/rendering/RenderBox.cpp
r178029 r178045 1802 1802 } 1803 1803 1804 LayoutUnit result = cb->availableLogicalWidthForLineInRegion(logicalTopPosition, false, containingBlockRegion) - childMarginStart - childMarginEnd; 1804 LayoutUnit logicalHeight = cb->logicalHeightForChild(*this); 1805 LayoutUnit result = cb->availableLogicalWidthForLineInRegion(logicalTopPosition, false, containingBlockRegion, logicalHeight) - childMarginStart - childMarginEnd; 1805 1806 1806 1807 // We need to see if margins on either the start side or the end side can contain the floats in question. If they can, … … 1812 1813 LayoutUnit startContentSide = cb->startOffsetForContent(containingBlockRegion); 1813 1814 LayoutUnit startContentSideWithMargin = startContentSide + childMarginStart; 1814 LayoutUnit startOffset = cb->startOffsetForLineInRegion(logicalTopPosition, false, containingBlockRegion );1815 LayoutUnit startOffset = cb->startOffsetForLineInRegion(logicalTopPosition, false, containingBlockRegion, logicalHeight); 1815 1816 if (startOffset > startContentSideWithMargin) 1816 1817 result += childMarginStart; … … 1822 1823 LayoutUnit endContentSide = cb->endOffsetForContent(containingBlockRegion); 1823 1824 LayoutUnit endContentSideWithMargin = endContentSide + childMarginEnd; 1824 LayoutUnit endOffset = cb->endOffsetForLineInRegion(logicalTopPosition, false, containingBlockRegion );1825 LayoutUnit endOffset = cb->endOffsetForLineInRegion(logicalTopPosition, false, containingBlockRegion, logicalHeight); 1825 1826 if (endOffset > endContentSideWithMargin) 1826 1827 result += childMarginEnd;
Note: See TracChangeset
for help on using the changeset viewer.