OSDN Git Service

Merge WebKit at r73109: Initial merge by git.
[android-x86/external-webkit.git] / WebCore / svg / SVGPathSegLineto.h
index 3cd3b7f..c995c98 100644 (file)
 #define SVGPathSegLineto_h
 
 #if ENABLE(SVG)
-
-#include "PlatformString.h"
-#include "SVGPathSeg.h"
+#include "SVGPathSegWithContext.h"
 
 namespace WebCore {
 
-    class SVGPathSegLinetoAbs : public SVGPathSegSingleCoord { 
-    public:
-        static PassRefPtr<SVGPathSegLinetoAbs> create(float x, float y) { return adoptRef(new SVGPathSegLinetoAbs(x, y)); }
+class SVGPathSegLinetoAbs : public SVGPathSegSingleCoordinate { 
+public:
+    static PassRefPtr<SVGPathSegLinetoAbs> create(SVGPathElement* element, SVGPathSegRole role, float x, float y)
+    {
+        return adoptRef(new SVGPathSegLinetoAbs(element, role, x, y));
+    }
 
-    private:
-        SVGPathSegLinetoAbs(float x, float y);
+private:
+    SVGPathSegLinetoAbs(SVGPathElement* element, SVGPathSegRole role, float x, float y)
+        : SVGPathSegSingleCoordinate(element, role, x, y)
+    {
+    }
 
-        virtual unsigned short pathSegType() const { return PATHSEG_LINETO_ABS; }
-        virtual String pathSegTypeAsLetter() const { return "L"; }
-    };
+    virtual unsigned short pathSegType() const { return PATHSEG_LINETO_ABS; }
+    virtual String pathSegTypeAsLetter() const { return "L"; }
+};
 
-    class SVGPathSegLinetoRel : public SVGPathSegSingleCoord { 
-    public:
-        static PassRefPtr<SVGPathSegLinetoRel> create(float x, float y) { return adoptRef(new SVGPathSegLinetoRel(x, y)); }
+class SVGPathSegLinetoRel : public SVGPathSegSingleCoordinate { 
+public:
+    static PassRefPtr<SVGPathSegLinetoRel> create(SVGPathElement* element, SVGPathSegRole role, float x, float y)
+    {
+        return adoptRef(new SVGPathSegLinetoRel(element, role, x, y));
+    }
 
-    private:
-        SVGPathSegLinetoRel(float x, float y);
+private:
+    SVGPathSegLinetoRel(SVGPathElement* element, SVGPathSegRole role, float x, float y)
+        : SVGPathSegSingleCoordinate(element, role, x, y)
+    {
+    }
 
-        virtual unsigned short pathSegType() const { return PATHSEG_LINETO_REL; }
-        virtual String pathSegTypeAsLetter() const { return "l"; }
-    };
+    virtual unsigned short pathSegType() const { return PATHSEG_LINETO_REL; }
+    virtual String pathSegTypeAsLetter() const { return "l"; }
+};
 
 } // namespace WebCore
 
 #endif // ENABLE(SVG)
 #endif
-
-// vim:ts=4:noet