⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 158219 in webkit


Ignore:
Timestamp:
Oct 29, 2013, 1:44:45 PM (13 years ago)
Author:
zoltan@webkit.org
Message:

Source/WebCore: [CSS Regions][CSS Shapes] Layout error when the shape has negative top coordinate and it's applied on the second region
<https://webkit.org/b/123346>

Reviewed by David Hyatt.

We have a layout error when there is a shape applied on the second region, and it has a negative 'top' coordinate.
Since shapeInsideInfo::shapeLogicalTop() can return negative numbers, we need to check for it, when we're positioning
the first line in the region.

Test: fast/regions/shape-inside/shape-inside-on-multiple-regions-with-negative-shape-top.html

  • rendering/RenderBlockLineLayout.cpp:

(WebCore::RenderBlockFlow::updateShapeAndSegmentsForCurrentLineInFlowThread):

LayoutTests: [CSS Regions][CSS Shapes] Layout error when the shape has negative top coordinate and it's applied on the second region
<http://webkit.org/b/123346>

Reviewed by David Hyatt.

We have a layout error when there is a shape applied on the second region, and it has a negative 'top' coordinate.
Since shapeInsideInfo::shapeLogicalTop() can return negative numbers, we need to check for it, when we're positioning
the first line in the region.

  • fast/regions/shape-inside/shape-inside-on-multiple-regions-with-negative-shape-top-expected.html: Added.
  • fast/regions/shape-inside/shape-inside-on-multiple-regions-with-negative-shape-top.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r158216 r158219  
     12013-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
    1152013-10-29  Ryosuke Niwa  <rniwa@webkit.org>
    216
  • trunk/Source/WebCore/ChangeLog

    r158218 r158219  
     12013-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
    1172013-10-29  Brady Eidson  <beidson@apple.com>
    218
  • trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp

    r158163 r158219  
    14441444    if (isFirstLineInRegion || isFirstLineAdjusted) {
    14451445        LayoutUnit shapeTopOffset = layoutState.adjustedLogicalLineTop();
    1446         if (!shapeTopOffset)
     1446
     1447        if (!shapeTopOffset && (shapeInsideInfo->shapeLogicalTop() > 0))
    14471448            shapeTopOffset = shapeInsideInfo->shapeLogicalTop();
    14481449
Note: See TracChangeset for help on using the changeset viewer.