| 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<SVGPathSegLinetoHorizontalAbs> create(SVGPathElement* elem
ent, SVGPathSegRole role, float x) | 49 static PassRefPtr<SVGPathSegLinetoHorizontalAbs> create(SVGPathElement* elem
ent, SVGPathSegRole role, float x) |
| 50 { | 50 { |
| 51 return adoptRef(new SVGPathSegLinetoHorizontalAbs(element, role, x)); | 51 return adoptRef(new SVGPathSegLinetoHorizontalAbs(element, role, x)); |
| 52 } | 52 } |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 SVGPathSegLinetoHorizontalAbs(SVGPathElement* element, SVGPathSegRole role,
float x) | 55 SVGPathSegLinetoHorizontalAbs(SVGPathElement* element, SVGPathSegRole role,
float x) |
| 56 : SVGPathSegLinetoHorizontal(element, role, x) | 56 : SVGPathSegLinetoHorizontal(element, role, x) |
| 57 { | 57 { |
| 58 ScriptWrappable::init(this); |
| 58 } | 59 } |
| 59 | 60 |
| 60 virtual unsigned short pathSegType() const { return PATHSEG_LINETO_HORIZONTA
L_ABS; } | 61 virtual unsigned short pathSegType() const { return PATHSEG_LINETO_HORIZONTA
L_ABS; } |
| 61 virtual String pathSegTypeAsLetter() const { return "H"; } | 62 virtual String pathSegTypeAsLetter() const { return "H"; } |
| 62 }; | 63 }; |
| 63 | 64 |
| 64 class SVGPathSegLinetoHorizontalRel : public SVGPathSegLinetoHorizontal { | 65 class SVGPathSegLinetoHorizontalRel : public SVGPathSegLinetoHorizontal { |
| 65 public: | 66 public: |
| 66 static PassRefPtr<SVGPathSegLinetoHorizontalRel> create(SVGPathElement* elem
ent, SVGPathSegRole role, float x) | 67 static PassRefPtr<SVGPathSegLinetoHorizontalRel> create(SVGPathElement* elem
ent, SVGPathSegRole role, float x) |
| 67 { | 68 { |
| 68 return adoptRef(new SVGPathSegLinetoHorizontalRel(element, role, x)); | 69 return adoptRef(new SVGPathSegLinetoHorizontalRel(element, role, x)); |
| 69 } | 70 } |
| 70 | 71 |
| 71 private: | 72 private: |
| 72 SVGPathSegLinetoHorizontalRel(SVGPathElement* element, SVGPathSegRole role,
float x) | 73 SVGPathSegLinetoHorizontalRel(SVGPathElement* element, SVGPathSegRole role,
float x) |
| 73 : SVGPathSegLinetoHorizontal(element, role, x) | 74 : SVGPathSegLinetoHorizontal(element, role, x) |
| 74 { | 75 { |
| 76 ScriptWrappable::init(this); |
| 75 } | 77 } |
| 76 | 78 |
| 77 virtual unsigned short pathSegType() const { return PATHSEG_LINETO_HORIZONTA
L_REL; } | 79 virtual unsigned short pathSegType() const { return PATHSEG_LINETO_HORIZONTA
L_REL; } |
| 78 virtual String pathSegTypeAsLetter() const { return "h"; } | 80 virtual String pathSegTypeAsLetter() const { return "h"; } |
| 79 }; | 81 }; |
| 80 | 82 |
| 81 } // namespace WebCore | 83 } // namespace WebCore |
| 82 | 84 |
| 83 #endif | 85 #endif |
| OLD | NEW |