Changeset 143420 in webkit


Ignore:
Timestamp:
Feb 19, 2013 5:56:15 PM (11 years ago)
Author:
hmuller@adobe.com
Message:

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

Reviewed by Dirk Schulze.

Source/WebCore:

This change is very similar to the one recently made for circles:
removed the test that disabled ellipse values for shape-inside.
The remaining support for ellipses, 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-ellipse.html

  • rendering/ExclusionShapeInsideInfo.h:

(WebCore::ExclusionShapeInsideInfo::isEnabledFor): No longer disallows any BasicShape type.

LayoutTests:

Added a test for ellipse shape-inside values.

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

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r143419 r143420  
     12013-02-19  Hans Muller  <hmuller@adobe.com>
     2
     3        [CSS Exclusions] Enable shape-inside support for ellipses
     4        https://bugs.webkit.org/show_bug.cgi?id=109868
     5
     6        Reviewed by Dirk Schulze.
     7
     8        Added a test for ellipse shape-inside values.
     9
     10        * fast/exclusions/shape-inside/shape-inside-ellipse-expected.html: Added.
     11        * fast/exclusions/shape-inside/shape-inside-ellipse.html: Added.
     12
    1132013-02-19  Uday Kiran  <udaykiran@motorola.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r143419 r143420  
     12013-02-19  Hans Muller  <hmuller@adobe.com>
     2
     3        [CSS Exclusions] Enable shape-inside support for ellipses
     4        https://bugs.webkit.org/show_bug.cgi?id=109868
     5
     6        Reviewed by Dirk Schulze.
     7
     8        This change is very similar to the one recently made for circles:
     9        removed the test that disabled ellipse values for shape-inside.
     10        The remaining support for ellipses, which is based on rounded rectangles
     11        whose width/height is equal to their radiusX/radiusY, has not changed.
     12
     13        Test: fast/exclusions/shape-inside/shape-inside-ellipse.html
     14
     15        * rendering/ExclusionShapeInsideInfo.h:
     16        (WebCore::ExclusionShapeInsideInfo::isEnabledFor): No longer disallows any BasicShape type.
     17
    1182013-02-19  Uday Kiran  <udaykiran@motorola.com>
    219
     
    258275        (WebCore::HTMLDocumentParser::prepareToStopParsing):
    259276        (WebCore::HTMLDocumentParser::attemptToRunDeferredScriptsAndEnd):
     277
     2782013-02-19  Hans Muller  <hmuller@adobe.com>
     279
     280        [CSS Exclusions] Enable shape-inside support for ellipses
     281        https://bugs.webkit.org/show_bug.cgi?id=109868
     282
     283        Reviewed by Dirk Schulze.
     284
     285        This change is very similar to the one recently made for circles:
     286        removed the test that disabled ellipse values for shape-inside.
     287        The remaining support for ellipses, which is based on rounded rectangles
     288        whose width/height is equal to their radiusX/radiusY, has not changed.
     289
     290        Test: fast/exclusions/shape-inside/shape-inside-ellipse.html
     291
     292        * rendering/ExclusionShapeInsideInfo.h:
     293        (WebCore::ExclusionShapeInsideInfo::isEnabledFor): No longer disallows any BasicShape type.
    260294
    2612952013-02-19  Simon Fraser  <simon.fraser@apple.com>
  • trunk/Source/WebCore/rendering/ExclusionShapeInsideInfo.h

    r143225 r143420  
    5959    static bool isEnabledFor(const RenderBlock* renderer)
    6060    {
    61         // FIXME: Bug 89707: Enable shape inside for non-rectangular shapes
    6261        ExclusionShapeValue* shapeValue = renderer->style()->resolvedShapeInside();
    63         BasicShape* shape = (shapeValue && shapeValue->type() == ExclusionShapeValue::SHAPE) ? shapeValue->shape() : 0;
    64         return shape && shape->type() != BasicShape::BASIC_SHAPE_ELLIPSE;
     62        return (shapeValue && shapeValue->type() == ExclusionShapeValue::SHAPE) ? shapeValue->shape() : 0;
    6563    }
    6664    bool lineOverlapsShapeBounds() const { return logicalLineTop() < shapeLogicalBottom() && logicalLineBottom() >= shapeLogicalTop(); }
Note: See TracChangeset for help on using the changeset viewer.