-
zoltan@webkit.org authored
<https://webkit.org/b/125112> Reviewed by David Hyatt. Source/WebCore: This patch adds inset support for shape-outside. Parsing has previously landed in r159968. Specification: http://dev.w3.org/csswg/css-shapes/#supported-basic-shapes Tests: fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-bottom-left.html fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-bottom-right.html fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-top-left.html fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-top-right.html fast/shapes/shape-outside-floats/shape-outside-floats-inset.html * platform/LengthSize.h: (WebCore::LengthSize::floatSize): Add conversion to FloatSize. * rendering/shapes/Shape.cpp: (WebCore::Shape::createShape): Handle inset case. LayoutTests: * fast/shapes/resources/rounded-rectangle.js: Add support to generate partially rounded rectangles. (scanConvertRoundedRectangleOutside): (genLeftRoundedRectFloatShapeOutsideRefTest): (genRightRoundedRectFloatShapeOutsideRefTest): * fast/shapes/shape-outside-floats/shape-outside-floats-inset-expected.html: Added. * fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-bottom-left-expected.html: Added. * fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-bottom-left.html: Added. * fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-bottom-right-expected.html: Added. * fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-bottom-right.html: Added. * fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-top-left-expected.html: Added. * fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-top-left.html: Added. * fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-top-right-expected.html: Added. * fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-top-right.html: Added. * fast/shapes/shape-outside-floats/shape-outside-floats-inset.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160130 268f45cc-cd09-0410-ab3c-d52691b4dbfc
c9ab7882