Home | History | Annotate | Download | only in svg

Lines Matching refs:Path

32 #include "platform/graphics/Path.h"
39 static void updatePathFromCircleElement(SVGElement* element, Path& path)
46 path.addEllipse(FloatRect(circle->cx()->currentValue()->value(lengthContext) - r, circle->cy()->currentValue()->value(lengthContext) - r, r * 2, r * 2));
49 static void updatePathFromEllipseElement(SVGElement* element, Path& path)
63 path.addEllipse(FloatRect(ellipse->cx()->currentValue()->value(lengthContext) - rx, ellipse->cy()->currentValue()->value(lengthContext) - ry, rx * 2, ry * 2));
66 static void updatePathFromLineElement(SVGElement* element, Path& path)
71 path.moveTo(FloatPoint(line->x1()->currentValue()->value(lengthContext), line->y1()->currentValue()->value(lengthContext)));
72 path.addLineTo(FloatPoint(line->x2()->currentValue()->value(lengthContext), line->y2()->currentValue()->value(lengthContext)));
75 static void updatePathFromPathElement(SVGElement* element, Path& path)
77 buildPathFromByteStream(toSVGPathElement(element)->pathByteStream(), path);
80 static void updatePathFromPolylineElement(SVGElement* element, Path& path)
89 path.moveTo(it->value());
93 path.addLineTo(it->value());
96 static void updatePathFromPolygonElement(SVGElement* element, Path& path)
98 updatePathFromPolylineElement(element, path);
99 path.closeSubpath();
102 static void updatePathFromRectElement(SVGElement* element, Path& path)
127 path.addRoundedRect(FloatRect(x, y, width, height), FloatSize(rx, ry));
131 path.addRect(FloatRect(x, y, width, height));
134 void updatePathFromGraphicsElement(SVGElement* element, Path& path)
137 ASSERT(path.isEmpty());
139 typedef void (*PathUpdateFunction)(SVGElement*, Path&);
153 (*pathUpdateFunction)(element, path);