diff options
author | Shimeng (Simon) Wang <swang@google.com> | 2010-12-07 17:22:45 -0800 |
---|---|---|
committer | Shimeng (Simon) Wang <swang@google.com> | 2010-12-22 14:15:40 -0800 |
commit | 4576aa36e9a9671459299c7963ac95aa94beaea9 (patch) | |
tree | 3863574e050f168c0126ecb47c83319fab0972d8 /WebCore/svg/SVGPathSegCurvetoQuadraticSmooth.h | |
parent | 55323ac613cc31553107b68603cb627264d22bb0 (diff) | |
download | external_webkit-4576aa36e9a9671459299c7963ac95aa94beaea9.zip external_webkit-4576aa36e9a9671459299c7963ac95aa94beaea9.tar.gz external_webkit-4576aa36e9a9671459299c7963ac95aa94beaea9.tar.bz2 |
Merge WebKit at r73109: Initial merge by git.
Change-Id: I61f1a66d9642e3d8405d3ac6ccab2a53421c75d8
Diffstat (limited to 'WebCore/svg/SVGPathSegCurvetoQuadraticSmooth.h')
-rw-r--r-- | WebCore/svg/SVGPathSegCurvetoQuadraticSmooth.h | 50 |
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 |