OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 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 class SVGPathSegLinetoHorizontalAbs; | 48 class SVGPathSegLinetoHorizontalAbs; |
49 class SVGPathSegLinetoHorizontalRel; | 49 class SVGPathSegLinetoHorizontalRel; |
50 class SVGPathSegCurvetoQuadraticAbs; | 50 class SVGPathSegCurvetoQuadraticAbs; |
51 class SVGPathSegCurvetoQuadraticRel; | 51 class SVGPathSegCurvetoQuadraticRel; |
52 class SVGPathSegCurvetoCubicSmoothAbs; | 52 class SVGPathSegCurvetoCubicSmoothAbs; |
53 class SVGPathSegCurvetoCubicSmoothRel; | 53 class SVGPathSegCurvetoCubicSmoothRel; |
54 class SVGPathSegCurvetoQuadraticSmoothAbs; | 54 class SVGPathSegCurvetoQuadraticSmoothAbs; |
55 class SVGPathSegCurvetoQuadraticSmoothRel; | 55 class SVGPathSegCurvetoQuadraticSmoothRel; |
56 class SVGPathSegListPropertyTearOff; | 56 class SVGPathSegListPropertyTearOff; |
57 | 57 |
58 class SVGPathElement : public SVGStyledTransformableElement, | 58 class SVGPathElement FINAL : public SVGStyledTransformableElement, |
59 public SVGTests, | 59 public SVGTests, |
60 public SVGLangSpace, | 60 public SVGLangSpace, |
61 public SVGExternalResourcesRequired { | 61 public SVGExternalResourcesRequired { |
62 public: | 62 public: |
63 static PassRefPtr<SVGPathElement> create(const QualifiedName&, Document*); | 63 static PassRefPtr<SVGPathElement> create(const QualifiedName&, Document*); |
64 | 64 |
65 float getTotalLength(); | 65 float getTotalLength(); |
66 FloatPoint getPointAtLength(float distance); | 66 FloatPoint getPointAtLength(float distance); |
67 unsigned getPathSegAtLength(float distance); | 67 unsigned getPathSegAtLength(float distance); |
68 | 68 |
69 PassRefPtr<SVGPathSegClosePath> createSVGPathSegClosePath(SVGPathSegRole rol
e = PathSegUndefinedRole); | 69 PassRefPtr<SVGPathSegClosePath> createSVGPathSegClosePath(SVGPathSegRole rol
e = PathSegUndefinedRole); |
70 PassRefPtr<SVGPathSegMovetoAbs> createSVGPathSegMovetoAbs(float x, float y,
SVGPathSegRole role = PathSegUndefinedRole); | 70 PassRefPtr<SVGPathSegMovetoAbs> createSVGPathSegMovetoAbs(float x, float y,
SVGPathSegRole role = PathSegUndefinedRole); |
71 PassRefPtr<SVGPathSegMovetoRel> createSVGPathSegMovetoRel(float x, float y,
SVGPathSegRole role = PathSegUndefinedRole); | 71 PassRefPtr<SVGPathSegMovetoRel> createSVGPathSegMovetoRel(float x, float y,
SVGPathSegRole role = PathSegUndefinedRole); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 inline SVGPathElement* toSVGPathElement(SVGElement* element) | 143 inline SVGPathElement* toSVGPathElement(SVGElement* element) |
144 { | 144 { |
145 ASSERT_WITH_SECURITY_IMPLICATION(!element || element->hasTagName(SVGNames::p
athTag)); | 145 ASSERT_WITH_SECURITY_IMPLICATION(!element || element->hasTagName(SVGNames::p
athTag)); |
146 return static_cast<SVGPathElement*>(element); | 146 return static_cast<SVGPathElement*>(element); |
147 } | 147 } |
148 | 148 |
149 } // namespace WebCore | 149 } // namespace WebCore |
150 | 150 |
151 #endif // ENABLE(SVG) | 151 #endif // ENABLE(SVG) |
152 #endif | 152 #endif |
OLD | NEW |