| 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 setY(float y) | 37 void setY(float y) |
| 38 { | 38 { |
| 39 m_y = y; | 39 m_y = y; |
| 40 commitChange(); | 40 commitChange(); |
| 41 } | 41 } |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 float m_y; | 44 float m_y; |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 class SVGPathSegLinetoVerticalAbs : public SVGPathSegLinetoVertical { | |
| 48 public: | |
| 49 static PassRefPtr<SVGPathSegLinetoVerticalAbs> create(SVGPathElement* elemen
t, SVGPathSegRole role, float y) | |
| 50 { | |
| 51 return adoptRef(new SVGPathSegLinetoVerticalAbs(element, role, y)); | |
| 52 } | |
| 53 | |
| 54 private: | |
| 55 SVGPathSegLinetoVerticalAbs(SVGPathElement* element, SVGPathSegRole role, fl
oat y) | |
| 56 : SVGPathSegLinetoVertical(element, role, y) | |
| 57 { | |
| 58 ScriptWrappable::init(this); | |
| 59 } | |
| 60 | |
| 61 virtual unsigned short pathSegType() const { return PATHSEG_LINETO_VERTICAL_
ABS; } | |
| 62 virtual String pathSegTypeAsLetter() const { return "V"; } | |
| 63 }; | |
| 64 | |
| 65 class SVGPathSegLinetoVerticalRel : public SVGPathSegLinetoVertical { | |
| 66 public: | |
| 67 static PassRefPtr<SVGPathSegLinetoVerticalRel> create(SVGPathElement* elemen
t, SVGPathSegRole role, float y) | |
| 68 { | |
| 69 return adoptRef(new SVGPathSegLinetoVerticalRel(element, role, y)); | |
| 70 } | |
| 71 | |
| 72 private: | |
| 73 SVGPathSegLinetoVerticalRel(SVGPathElement* element, SVGPathSegRole role, fl
oat y) | |
| 74 : SVGPathSegLinetoVertical(element, role, y) | |
| 75 { | |
| 76 ScriptWrappable::init(this); | |
| 77 } | |
| 78 | |
| 79 virtual unsigned short pathSegType() const { return PATHSEG_LINETO_VERTICAL_
REL; } | |
| 80 virtual String pathSegTypeAsLetter() const { return "v"; } | |
| 81 }; | |
| 82 | |
| 83 } // namespace WebCore | 47 } // namespace WebCore |
| 84 | 48 |
| 85 #endif | 49 #endif |
| OLD | NEW |