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