diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:15 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:15 -0800 |
commit | 1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch) | |
tree | 4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebCore/svg/SVGPathSegLineto.h | |
parent | 9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff) | |
download | external_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.h | 33 |
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 |