Changeset 158219 in webkit
- Timestamp:
- Oct 29, 2013, 1:44:45 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/regions/shape-inside/shape-inside-on-multiple-regions-with-negative-shape-top-expected.html (added)
-
LayoutTests/fast/regions/shape-inside/shape-inside-on-multiple-regions-with-negative-shape-top.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderBlockLineLayout.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r158216 r158219 1 2013-10-29 Zoltan Horvath <zoltan@webkit.org> 2 3 [CSS Regions][CSS Shapes] Layout error when the shape has negative top coordinate and it's applied on the second region 4 <http://webkit.org/b/123346> 5 6 Reviewed by David Hyatt. 7 8 We have a layout error when there is a shape applied on the second region, and it has a negative 'top' coordinate. 9 Since shapeInsideInfo::shapeLogicalTop() can return negative numbers, we need to check for it, when we're positioning 10 the first line in the region. 11 12 * fast/regions/shape-inside/shape-inside-on-multiple-regions-with-negative-shape-top-expected.html: Added. 13 * fast/regions/shape-inside/shape-inside-on-multiple-regions-with-negative-shape-top.html: Added. 14 1 15 2013-10-29 Ryosuke Niwa <rniwa@webkit.org> 2 16 -
trunk/Source/WebCore/ChangeLog
r158218 r158219 1 2013-10-29 Zoltan Horvath <zoltan@webkit.org> 2 3 [CSS Regions][CSS Shapes] Layout error when the shape has negative top coordinate and it's applied on the second region 4 <https://webkit.org/b/123346> 5 6 Reviewed by David Hyatt. 7 8 We have a layout error when there is a shape applied on the second region, and it has a negative 'top' coordinate. 9 Since shapeInsideInfo::shapeLogicalTop() can return negative numbers, we need to check for it, when we're positioning 10 the first line in the region. 11 12 Test: fast/regions/shape-inside/shape-inside-on-multiple-regions-with-negative-shape-top.html 13 14 * rendering/RenderBlockLineLayout.cpp: 15 (WebCore::RenderBlockFlow::updateShapeAndSegmentsForCurrentLineInFlowThread): 16 1 17 2013-10-29 Brady Eidson <beidson@apple.com> 2 18 -
trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp
r158163 r158219 1444 1444 if (isFirstLineInRegion || isFirstLineAdjusted) { 1445 1445 LayoutUnit shapeTopOffset = layoutState.adjustedLogicalLineTop(); 1446 if (!shapeTopOffset) 1446 1447 if (!shapeTopOffset && (shapeInsideInfo->shapeLogicalTop() > 0)) 1447 1448 shapeTopOffset = shapeInsideInfo->shapeLogicalTop(); 1448 1449
Note:
See TracChangeset
for help on using the changeset viewer.