| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 private: | 83 private: |
| 84 float m_x; | 84 float m_x; |
| 85 float m_y; | 85 float m_y; |
| 86 float m_x1; | 86 float m_x1; |
| 87 float m_y1; | 87 float m_y1; |
| 88 float m_x2; | 88 float m_x2; |
| 89 float m_y2; | 89 float m_y2; |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 class SVGPathSegCurvetoCubicAbs : public SVGPathSegCurvetoCubic { | |
| 93 public: | |
| 94 static PassRefPtr<SVGPathSegCurvetoCubicAbs> create(SVGPathElement* element,
SVGPathSegRole role, float x, float y, float x1, float y1, float x2, float y2) | |
| 95 { | |
| 96 return adoptRef(new SVGPathSegCurvetoCubicAbs(element, role, x, y, x1, y
1, x2, y2)); | |
| 97 } | |
| 98 | |
| 99 private: | |
| 100 SVGPathSegCurvetoCubicAbs(SVGPathElement* element, SVGPathSegRole role, floa
t x, float y, float x1, float y1, float x2, float y2) | |
| 101 : SVGPathSegCurvetoCubic(element, role, x, y, x1, y1, x2, y2) | |
| 102 { | |
| 103 ScriptWrappable::init(this); | |
| 104 } | |
| 105 | |
| 106 virtual unsigned short pathSegType() const { return PATHSEG_CURVETO_CUBIC_AB
S; } | |
| 107 virtual String pathSegTypeAsLetter() const { return "C"; } | |
| 108 }; | |
| 109 | |
| 110 class SVGPathSegCurvetoCubicRel : public SVGPathSegCurvetoCubic { | |
| 111 public: | |
| 112 static PassRefPtr<SVGPathSegCurvetoCubicRel> create(SVGPathElement* element,
SVGPathSegRole role, float x, float y, float x1, float y1, float x2, float y2) | |
| 113 { | |
| 114 return adoptRef(new SVGPathSegCurvetoCubicRel(element, role, x, y, x1, y
1, x2, y2)); | |
| 115 } | |
| 116 | |
| 117 private: | |
| 118 SVGPathSegCurvetoCubicRel(SVGPathElement* element, SVGPathSegRole role, floa
t x, float y, float x1, float y1, float x2, float y2) | |
| 119 : SVGPathSegCurvetoCubic(element, role, x, y, x1, y1, x2, y2) | |
| 120 { | |
| 121 ScriptWrappable::init(this); | |
| 122 } | |
| 123 | |
| 124 virtual unsigned short pathSegType() const { return PATHSEG_CURVETO_CUBIC_RE
L; } | |
| 125 virtual String pathSegTypeAsLetter() const { return "c"; } | |
| 126 }; | |
| 127 | |
| 128 } // namespace WebCore | 92 } // namespace WebCore |
| 129 | 93 |
| 130 #endif | 94 #endif |
| OLD | NEW |