| 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 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 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 17 matching lines...) Expand all Loading... |
| 28 class SVGPathSegClosePath FINAL : public SVGPathSegWithContext { | 28 class SVGPathSegClosePath FINAL : public SVGPathSegWithContext { |
| 29 DEFINE_WRAPPERTYPEINFO(); | 29 DEFINE_WRAPPERTYPEINFO(); |
| 30 public: | 30 public: |
| 31 static PassRefPtr<SVGPathSegClosePath> create(SVGPathElement* element) | 31 static PassRefPtr<SVGPathSegClosePath> create(SVGPathElement* element) |
| 32 { | 32 { |
| 33 return adoptRef(new SVGPathSegClosePath(element)); | 33 return adoptRef(new SVGPathSegClosePath(element)); |
| 34 } | 34 } |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 SVGPathSegClosePath(SVGPathElement* element) | 37 SVGPathSegClosePath(SVGPathElement* element) |
| 38 : SVGPathSegWithContext(element) | 38 : SVGPathSegWithContext(element) { } |
| 39 { | |
| 40 ScriptWrappable::init(this); | |
| 41 } | |
| 42 | 39 |
| 43 virtual unsigned short pathSegType() const OVERRIDE { return PATHSEG_CLOSEPA
TH; } | 40 virtual unsigned short pathSegType() const OVERRIDE { return PATHSEG_CLOSEPA
TH; } |
| 44 virtual String pathSegTypeAsLetter() const OVERRIDE { return "Z"; } | 41 virtual String pathSegTypeAsLetter() const OVERRIDE { return "Z"; } |
| 45 }; | 42 }; |
| 46 | 43 |
| 47 } // namespace blink | 44 } // namespace blink |
| 48 | 45 |
| 49 #endif // SVGPathSegClosePath_h | 46 #endif // SVGPathSegClosePath_h |
| OLD | NEW |