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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 commitChange(); | 64 commitChange(); |
65 } | 65 } |
66 | 66 |
67 private: | 67 private: |
68 float m_x; | 68 float m_x; |
69 float m_y; | 69 float m_y; |
70 float m_x2; | 70 float m_x2; |
71 float m_y2; | 71 float m_y2; |
72 }; | 72 }; |
73 | 73 |
74 class SVGPathSegCurvetoCubicSmoothAbs : public SVGPathSegCurvetoCubicSmooth { | |
75 public: | |
76 static PassRefPtr<SVGPathSegCurvetoCubicSmoothAbs> create(SVGPathElement* el
ement, SVGPathSegRole role, float x, float y, float x2, float y2) | |
77 { | |
78 return adoptRef(new SVGPathSegCurvetoCubicSmoothAbs(element, role, x, y,
x2, y2)); | |
79 } | |
80 | |
81 private: | |
82 SVGPathSegCurvetoCubicSmoothAbs(SVGPathElement* element, SVGPathSegRole role
, float x, float y, float x2, float y2) | |
83 : SVGPathSegCurvetoCubicSmooth(element, role, x, y, x2, y2) | |
84 { | |
85 ScriptWrappable::init(this); | |
86 } | |
87 | |
88 virtual unsigned short pathSegType() const { return PATHSEG_CURVETO_CUBIC_SM
OOTH_ABS; } | |
89 virtual String pathSegTypeAsLetter() const { return "S"; } | |
90 }; | |
91 | |
92 class SVGPathSegCurvetoCubicSmoothRel : public SVGPathSegCurvetoCubicSmooth { | |
93 public: | |
94 static PassRefPtr<SVGPathSegCurvetoCubicSmoothRel> create(SVGPathElement* el
ement, SVGPathSegRole role, float x, float y, float x2, float y2) | |
95 { | |
96 return adoptRef(new SVGPathSegCurvetoCubicSmoothRel(element, role, x, y,
x2, y2)); | |
97 } | |
98 | |
99 private: | |
100 SVGPathSegCurvetoCubicSmoothRel(SVGPathElement* element, SVGPathSegRole role
, float x, float y, float x2, float y2) | |
101 : SVGPathSegCurvetoCubicSmooth(element, role, x, y, x2, y2) | |
102 { | |
103 ScriptWrappable::init(this); | |
104 } | |
105 | |
106 virtual unsigned short pathSegType() const { return PATHSEG_CURVETO_CUBIC_SM
OOTH_REL; } | |
107 virtual String pathSegTypeAsLetter() const { return "s"; } | |
108 }; | |
109 | |
110 } // namespace WebCore | 74 } // namespace WebCore |
111 | 75 |
112 #endif | 76 #endif |
OLD | NEW |