summaryrefslogtreecommitdiffstats
path: root/WebCore/svg/SVGPathSegLineto.h
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
commit1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch)
tree4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebCore/svg/SVGPathSegLineto.h
parent9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff)
downloadexternal_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.zip
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.gz
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.bz2
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'WebCore/svg/SVGPathSegLineto.h')
-rw-r--r--WebCore/svg/SVGPathSegLineto.h33
1 files changed, 8 insertions, 25 deletions
diff --git a/WebCore/svg/SVGPathSegLineto.h b/WebCore/svg/SVGPathSegLineto.h
index b2f30fc..1818ad2 100644
--- a/WebCore/svg/SVGPathSegLineto.h
+++ b/WebCore/svg/SVGPathSegLineto.h
@@ -1,6 +1,6 @@
/*
Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
- 2004, 2005, 2006 Rob Buis <buis@kde.org>
+ 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org>
This file is part of the KDE project
@@ -28,44 +28,27 @@
#include "SVGPathSeg.h"
namespace WebCore {
- class SVGPathSegLinetoAbs : public SVGPathSeg {
+ class SVGPathSegLinetoAbs : public SVGPathSegSingleCoord {
public:
- SVGPathSegLinetoAbs(float x, float y);
- virtual ~SVGPathSegLinetoAbs();
+ static PassRefPtr<SVGPathSegLinetoAbs> create(float x, float y) { return adoptRef(new SVGPathSegLinetoAbs(x, y)); }
virtual unsigned short pathSegType() const { return PATHSEG_LINETO_ABS; }
virtual String pathSegTypeAsLetter() const { return "L"; }
- virtual String toString() const { return String::format("L %.6lg %.6lg", m_x, m_y); }
-
- void setX(float);
- float x() const;
-
- void setY(float);
- float y() const;
private:
- float m_x;
- float m_y;
+ SVGPathSegLinetoAbs(float x, float y);
};
- class SVGPathSegLinetoRel : public SVGPathSeg {
+ class SVGPathSegLinetoRel : public SVGPathSegSingleCoord {
public:
- SVGPathSegLinetoRel(float x, float y);
- virtual ~SVGPathSegLinetoRel();
+ static PassRefPtr<SVGPathSegLinetoRel> create(float x, float y) { return adoptRef(new SVGPathSegLinetoRel(x, y)); }
+
virtual unsigned short pathSegType() const { return PATHSEG_LINETO_REL; }
virtual String pathSegTypeAsLetter() const { return "l"; }
- virtual String toString() const { return String::format("l %.6lg %.6lg", m_x, m_y); }
-
- void setX(float);
- float x() const;
-
- void setY(float);
- float y() const;
private:
- float m_x;
- float m_y;
+ SVGPathSegLinetoRel(float x, float y);
};
} // namespace WebCore