12012-08-31 Dirk Schulze <krit@webkit.org>
2
3 Use -webkit-clip-path shapes to clip SVG elements
4 https://bugs.webkit.org/show_bug.cgi?id=95620
5
6 Reviewed by NOBODY (OOPS!).
7
8 Additional information of the change such as approach, rationale. Please add per-function descriptions below (OOPS!).
9
10 Tests: svg/clip-path/clip-path-shape-circle-1-expected.svg
11 svg/clip-path/clip-path-shape-circle-1.svg
12 svg/clip-path/clip-path-shape-circle-2-expected.svg
13 svg/clip-path/clip-path-shape-circle-2.svg
14 svg/clip-path/clip-path-shape-ellipse-1-expected.svg
15 svg/clip-path/clip-path-shape-ellipse-1.svg
16 svg/clip-path/clip-path-shape-ellipse-2-expected.svg
17 svg/clip-path/clip-path-shape-ellipse-2.svg
18 svg/clip-path/clip-path-shape-polygon-1-expected.svg
19 svg/clip-path/clip-path-shape-polygon-1.svg
20 svg/clip-path/clip-path-shape-polygon-2-expected.svg
21 svg/clip-path/clip-path-shape-polygon-2.svg
22 svg/clip-path/clip-path-shape-polygon-3-expected.svg
23 svg/clip-path/clip-path-shape-polygon-3.svg
24 svg/clip-path/clip-path-shape-rounded-rect-1-expected.svg
25 svg/clip-path/clip-path-shape-rounded-rect-1.svg
26 svg/clip-path/clip-path-shape-rounded-rect-2-expected.svg
27 svg/clip-path/clip-path-shape-rounded-rect-2.svg
28
29 * rendering/style/BasicShapes.cpp:
30 (WebCore::BasicShapeRectangle::path):
31 (WebCore):
32 (WebCore::BasicShapeCircle::path):
33 (WebCore::BasicShapeEllipse::path):
34 (WebCore::BasicShapePolygon::path):
35 * rendering/style/BasicShapes.h:
36 (WebCore):
37 (WebCore::BasicShape::~BasicShape):
38 (BasicShape):
39 (WebCore::BasicShape::windRule):
40 (WebCore::BasicShape::BasicShape):
41 (BasicShapeRectangle):
42 (WebCore::BasicShapeRectangle::type):
43 (WebCore::BasicShapeRectangle::BasicShapeRectangle):
44 (BasicShapeCircle):
45 (WebCore::BasicShapeCircle::type):
46 (WebCore::BasicShapeCircle::BasicShapeCircle):
47 (BasicShapeEllipse):
48 (WebCore::BasicShapeEllipse::type):
49 (WebCore::BasicShapeEllipse::BasicShapeEllipse):
50 (BasicShapePolygon):
51 (WebCore::BasicShapePolygon::windRule):
52 (WebCore::BasicShapePolygon::type):
53 (WebCore::BasicShapePolygon::BasicShapePolygon):
54 * rendering/svg/SVGRenderingContext.cpp:
55 (WebCore::SVGRenderingContext::prepareToRenderSVGContent):
56