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