| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 void setX(float x) | 37 void setX(float x) |
| 38 { | 38 { |
| 39 m_x = x; | 39 m_x = x; |
| 40 commitChange(); | 40 commitChange(); |
| 41 } | 41 } |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 float m_x; | 44 float m_x; |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 class SVGPathSegLinetoHorizontalAbs : public SVGPathSegLinetoHorizontal { | |
| 48 public: | |
| 49 static PassRefPtr<SVGPathSegLinetoHorizontalAbs> create(SVGPathElement* elem
ent, SVGPathSegRole role, float x) | |
| 50 { | |
| 51 return adoptRef(new SVGPathSegLinetoHorizontalAbs(element, role, x)); | |
| 52 } | |
| 53 | |
| 54 private: | |
| 55 SVGPathSegLinetoHorizontalAbs(SVGPathElement* element, SVGPathSegRole role,
float x) | |
| 56 : SVGPathSegLinetoHorizontal(element, role, x) | |
| 57 { | |
| 58 ScriptWrappable::init(this); | |
| 59 } | |
| 60 | |
| 61 virtual unsigned short pathSegType() const { return PATHSEG_LINETO_HORIZONTA
L_ABS; } | |
| 62 virtual String pathSegTypeAsLetter() const { return "H"; } | |
| 63 }; | |
| 64 | |
| 65 class SVGPathSegLinetoHorizontalRel : public SVGPathSegLinetoHorizontal { | |
| 66 public: | |
| 67 static PassRefPtr<SVGPathSegLinetoHorizontalRel> create(SVGPathElement* elem
ent, SVGPathSegRole role, float x) | |
| 68 { | |
| 69 return adoptRef(new SVGPathSegLinetoHorizontalRel(element, role, x)); | |
| 70 } | |
| 71 | |
| 72 private: | |
| 73 SVGPathSegLinetoHorizontalRel(SVGPathElement* element, SVGPathSegRole role,
float x) | |
| 74 : SVGPathSegLinetoHorizontal(element, role, x) | |
| 75 { | |
| 76 ScriptWrappable::init(this); | |
| 77 } | |
| 78 | |
| 79 virtual unsigned short pathSegType() const { return PATHSEG_LINETO_HORIZONTA
L_REL; } | |
| 80 virtual String pathSegTypeAsLetter() const { return "h"; } | |
| 81 }; | |
| 82 | |
| 83 } // namespace WebCore | 47 } // namespace WebCore |
| 84 | 48 |
| 85 #endif | 49 #endif |
| OLD | NEW |