summaryrefslogtreecommitdiffstats
path: root/WebCore/svg/SVGPathSegCurvetoQuadraticSmooth.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/svg/SVGPathSegCurvetoQuadraticSmooth.h')
-rw-r--r--WebCore/svg/SVGPathSegCurvetoQuadraticSmooth.h50
1 files changed, 29 insertions, 21 deletions
diff --git a/WebCore/svg/SVGPathSegCurvetoQuadraticSmooth.h b/WebCore/svg/SVGPathSegCurvetoQuadraticSmooth.h
index 109799e..b66062a 100644
--- a/WebCore/svg/SVGPathSegCurvetoQuadraticSmooth.h
+++ b/WebCore/svg/SVGPathSegCurvetoQuadraticSmooth.h
@@ -22,37 +22,45 @@
#define SVGPathSegCurvetoQuadraticSmooth_h
#if ENABLE(SVG)
-
-#include "PlatformString.h"
-#include "SVGPathSeg.h"
+#include "SVGPathSegWithContext.h"
namespace WebCore {
- class SVGPathSegCurvetoQuadraticSmoothAbs : public SVGPathSegSingleCoord {
- public:
- static PassRefPtr<SVGPathSegCurvetoQuadraticSmoothAbs> create(float x, float y) { return adoptRef(new SVGPathSegCurvetoQuadraticSmoothAbs(x, y)); }
+class SVGPathSegCurvetoQuadraticSmoothAbs : public SVGPathSegSingleCoordinate {
+public:
+ static PassRefPtr<SVGPathSegCurvetoQuadraticSmoothAbs> create(SVGPathElement* element, SVGPathSegRole role, float x, float y)
+ {
+ return adoptRef(new SVGPathSegCurvetoQuadraticSmoothAbs(element, role, x, y));
+ }
- private:
- SVGPathSegCurvetoQuadraticSmoothAbs(float x, float y);
+private:
+ SVGPathSegCurvetoQuadraticSmoothAbs(SVGPathElement* element, SVGPathSegRole role, float x, float y)
+ : SVGPathSegSingleCoordinate(element, role, x, y)
+ {
+ }
- virtual unsigned short pathSegType() const { return PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS; }
- virtual String pathSegTypeAsLetter() const { return "T"; }
- };
+ virtual unsigned short pathSegType() const { return PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS; }
+ virtual String pathSegTypeAsLetter() const { return "T"; }
+};
- class SVGPathSegCurvetoQuadraticSmoothRel : public SVGPathSegSingleCoord {
- public:
- static PassRefPtr<SVGPathSegCurvetoQuadraticSmoothRel> create(float x, float y) { return adoptRef(new SVGPathSegCurvetoQuadraticSmoothRel(x, y)); }
+class SVGPathSegCurvetoQuadraticSmoothRel : public SVGPathSegSingleCoordinate {
+public:
+ static PassRefPtr<SVGPathSegCurvetoQuadraticSmoothRel> create(SVGPathElement* element, SVGPathSegRole role, float x, float y)
+ {
+ return adoptRef(new SVGPathSegCurvetoQuadraticSmoothRel(element, role, x, y));
+ }
- private:
- SVGPathSegCurvetoQuadraticSmoothRel(float x, float y);
+private:
+ SVGPathSegCurvetoQuadraticSmoothRel(SVGPathElement* element, SVGPathSegRole role, float x, float y)
+ : SVGPathSegSingleCoordinate(element, role, x, y)
+ {
+ }
- virtual unsigned short pathSegType() const { return PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL; }
- virtual String pathSegTypeAsLetter() const { return "t"; }
- };
+ virtual unsigned short pathSegType() const { return PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL; }
+ virtual String pathSegTypeAsLetter() const { return "t"; }
+};
} // namespace WebCore
#endif // ENABLE(SVG)
#endif
-
-// vim:ts=4:noet