Changeset 143010 in webkit


Ignore:
Timestamp:
Feb 15, 2013 9:31:39 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[CSS Exclusions] Enable shape-inside support for circles
https://bugs.webkit.org/show_bug.cgi?id=109713

Patch by Hans Muller <hmuller@adobe.com> on 2013-02-15
Reviewed by Dirk Schulze.

Source/WebCore:

Removed the test that disabled circle values for shape-inside.
The remaining support for circles, which is based on rounded rectangles
whose width/height is equal to their radiusX/radiusY, has not changed.

Test: fast/exclusions/shape-inside/shape-inside-circle.html

  • rendering/ExclusionShapeInsideInfo.h:

(WebCore::ExclusionShapeInsideInfo::isEnabledFor): Now only disallows ellipse.

LayoutTests:

Added a test for circle shape-inside values.

  • fast/exclusions/shape-inside/shape-inside-circle-expected.html: Added.
  • fast/exclusions/shape-inside/shape-inside-circle.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r143005 r143010  
     12013-02-15  Hans Muller  <hmuller@adobe.com>
     2
     3        [CSS Exclusions] Enable shape-inside support for circles
     4        https://bugs.webkit.org/show_bug.cgi?id=109713
     5
     6        Reviewed by Dirk Schulze.
     7
     8        Added a test for circle shape-inside values.
     9
     10        * fast/exclusions/shape-inside/shape-inside-circle-expected.html: Added.
     11        * fast/exclusions/shape-inside/shape-inside-circle.html: Added.
     12
    1132013-02-15  Vsevolod Vlasov  <vsevik@chromium.org>
    214
  • trunk/Source/WebCore/ChangeLog

    r143009 r143010  
     12013-02-15  Hans Muller  <hmuller@adobe.com>
     2
     3        [CSS Exclusions] Enable shape-inside support for circles
     4        https://bugs.webkit.org/show_bug.cgi?id=109713
     5
     6        Reviewed by Dirk Schulze.
     7
     8        Removed the test that disabled circle values for shape-inside.
     9        The remaining support for circles, which is based on rounded rectangles
     10        whose width/height is equal to their radiusX/radiusY, has not changed.
     11
     12        Test: fast/exclusions/shape-inside/shape-inside-circle.html
     13
     14        * rendering/ExclusionShapeInsideInfo.h:
     15        (WebCore::ExclusionShapeInsideInfo::isEnabledFor): Now only disallows ellipse.
     16
    1172013-02-15  Christophe Dumez  <ch.dumez@sisa.samsung.com>
    218
  • trunk/Source/WebCore/rendering/ExclusionShapeInsideInfo.h

    r142164 r143010  
    6262        ExclusionShapeValue* shapeValue = renderer->style()->shapeInside();
    6363        BasicShape* shape = (shapeValue && shapeValue->type() == ExclusionShapeValue::SHAPE) ? shapeValue->shape() : 0;
    64         return shape && (shape->type() == BasicShape::BASIC_SHAPE_RECTANGLE || shape->type() == BasicShape::BASIC_SHAPE_POLYGON);
     64        return shape && shape->type() != BasicShape::BASIC_SHAPE_ELLIPSE;
    6565    }
    6666    bool lineOverlapsShapeBounds() const { return logicalLineTop() < shapeLogicalBottom() && logicalLineBottom() >= shapeLogicalTop(); }
Note: See TracChangeset for help on using the changeset viewer.