Changeset 168778 in webkit


Ignore:
Timestamp:
May 13, 2014 9:13:47 PM (10 years ago)
Author:
hmuller@adobe.com
Message:

[CSS Shapes] line height grows around polygon and incorrectly causes text to wrap to next line
https://bugs.webkit.org/show_bug.cgi?id=131622

Reviewed by Bem Jones-Bey.

Source/WebCore:
Corrected an earlier PolygonShape fix https://bugs.webkit.org/show_bug.cgi?id=132132
When the top or bottom of a layout line is coincident with a polygon edge vertex, we
only consider it an intersection if the edge extends into the line.

Test: fast/shapes/shape-outside-floats/shape-outside-edge-case.html

  • rendering/shapes/PolygonShape.cpp:

(WebCore::OffsetPolygonEdge::clippedEdgeXRange):

LayoutTests:

  • fast/shapes/shape-outside-floats/shape-outside-edge-case-expected.html: Added.
  • fast/shapes/shape-outside-floats/shape-outside-edge-case.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r168750 r168778  
     12014-05-13  Hans Muller  <hmuller@adobe.com>
     2
     3        [CSS Shapes] line height grows around polygon and incorrectly causes text to wrap to next line
     4        https://bugs.webkit.org/show_bug.cgi?id=131622
     5
     6        Reviewed by Bem Jones-Bey.
     7
     8        * fast/shapes/shape-outside-floats/shape-outside-edge-case-expected.html: Added.
     9        * fast/shapes/shape-outside-floats/shape-outside-edge-case.html: Added.
     10
    1112014-05-13  Myles C. Maxfield  <litherum@gmail.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r168777 r168778  
     12014-05-13  Hans Muller  <hmuller@adobe.com>
     2
     3        [CSS Shapes] line height grows around polygon and incorrectly causes text to wrap to next line
     4        https://bugs.webkit.org/show_bug.cgi?id=131622
     5
     6        Reviewed by Bem Jones-Bey.
     7
     8        Corrected an earlier PolygonShape fix https://bugs.webkit.org/show_bug.cgi?id=132132
     9        When the top or bottom of a layout line is coincident with a polygon edge vertex, we
     10        only consider it an intersection if the edge extends into the line.
     11
     12        Test: fast/shapes/shape-outside-floats/shape-outside-edge-case.html
     13
     14        * rendering/shapes/PolygonShape.cpp:
     15        (WebCore::OffsetPolygonEdge::clippedEdgeXRange):
     16
    1172014-05-13  Beth Dakin  <bdakin@apple.com>
    218
  • trunk/Source/WebCore/rendering/shapes/PolygonShape.cpp

    r167931 r168778  
    6767FloatShapeInterval OffsetPolygonEdge::clippedEdgeXRange(float y1, float y2) const
    6868{
    69     if (!overlapsYRange(y1, y2) || (y1 == maxY() && vertex2().y() < vertex1().y()))
     69    if (!overlapsYRange(y1, y2) || (y1 == maxY() && minY() <= y1) || (y2 == minY() && maxY() >= y2))
    7070        return FloatShapeInterval();
    7171
Note: See TracChangeset for help on using the changeset viewer.