| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 public: | 103 public: |
| 104 static PassRefPtr<SVGPathSegArcAbs> create(SVGPathElement* element, SVGPathS
egRole role, float x, float y, float r1, float r2, float angle, bool largeArcFla
g, bool sweepFlag) | 104 static PassRefPtr<SVGPathSegArcAbs> create(SVGPathElement* element, SVGPathS
egRole role, float x, float y, float r1, float r2, float angle, bool largeArcFla
g, bool sweepFlag) |
| 105 { | 105 { |
| 106 return adoptRef(new SVGPathSegArcAbs(element, role, x, y, r1, r2, angle,
largeArcFlag, sweepFlag)); | 106 return adoptRef(new SVGPathSegArcAbs(element, role, x, y, r1, r2, angle,
largeArcFlag, sweepFlag)); |
| 107 } | 107 } |
| 108 | 108 |
| 109 private: | 109 private: |
| 110 SVGPathSegArcAbs(SVGPathElement* element, SVGPathSegRole role, float x, floa
t y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag) | 110 SVGPathSegArcAbs(SVGPathElement* element, SVGPathSegRole role, float x, floa
t y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag) |
| 111 : SVGPathSegArc(element, role, x, y, r1, r2, angle, largeArcFlag, sweepF
lag) | 111 : SVGPathSegArc(element, role, x, y, r1, r2, angle, largeArcFlag, sweepF
lag) |
| 112 { | 112 { |
| 113 ScriptWrappable::init(this); |
| 113 } | 114 } |
| 114 | 115 |
| 115 virtual unsigned short pathSegType() const { return PATHSEG_ARC_ABS; } | 116 virtual unsigned short pathSegType() const { return PATHSEG_ARC_ABS; } |
| 116 virtual String pathSegTypeAsLetter() const { return "A"; } | 117 virtual String pathSegTypeAsLetter() const { return "A"; } |
| 117 }; | 118 }; |
| 118 | 119 |
| 119 class SVGPathSegArcRel : public SVGPathSegArc { | 120 class SVGPathSegArcRel : public SVGPathSegArc { |
| 120 public: | 121 public: |
| 121 static PassRefPtr<SVGPathSegArcRel> create(SVGPathElement* element, SVGPathS
egRole role, float x, float y, float r1, float r2, float angle, bool largeArcFla
g, bool sweepFlag) | 122 static PassRefPtr<SVGPathSegArcRel> create(SVGPathElement* element, SVGPathS
egRole role, float x, float y, float r1, float r2, float angle, bool largeArcFla
g, bool sweepFlag) |
| 122 { | 123 { |
| 123 return adoptRef(new SVGPathSegArcRel(element, role, x, y, r1, r2, angle,
largeArcFlag, sweepFlag)); | 124 return adoptRef(new SVGPathSegArcRel(element, role, x, y, r1, r2, angle,
largeArcFlag, sweepFlag)); |
| 124 } | 125 } |
| 125 | 126 |
| 126 private: | 127 private: |
| 127 SVGPathSegArcRel(SVGPathElement* element, SVGPathSegRole role, float x, floa
t y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag) | 128 SVGPathSegArcRel(SVGPathElement* element, SVGPathSegRole role, float x, floa
t y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag) |
| 128 : SVGPathSegArc(element, role, x, y, r1, r2, angle, largeArcFlag, sweepF
lag) | 129 : SVGPathSegArc(element, role, x, y, r1, r2, angle, largeArcFlag, sweepF
lag) |
| 129 { | 130 { |
| 131 ScriptWrappable::init(this); |
| 130 } | 132 } |
| 131 | 133 |
| 132 virtual unsigned short pathSegType() const { return PATHSEG_ARC_REL; } | 134 virtual unsigned short pathSegType() const { return PATHSEG_ARC_REL; } |
| 133 virtual String pathSegTypeAsLetter() const { return "a"; } | 135 virtual String pathSegTypeAsLetter() const { return "a"; } |
| 134 }; | 136 }; |
| 135 | 137 |
| 136 } // namespace WebCore | 138 } // namespace WebCore |
| 137 | 139 |
| 138 #endif | 140 #endif |
| OLD | NEW |