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, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
19 */ | 19 */ |
20 | 20 |
21 #ifndef SVGPathElement_h | 21 #ifndef SVGPathElement_h |
22 #define SVGPathElement_h | 22 #define SVGPathElement_h |
23 | 23 |
24 #include "SVGNames.h" | 24 #include "SVGNames.h" |
25 #include "core/svg/SVGAnimatedBoolean.h" | 25 #include "core/svg/SVGAnimatedBoolean.h" |
26 #include "core/svg/SVGAnimatedNumber.h" | 26 #include "core/svg/SVGAnimatedNumber.h" |
27 #include "core/svg/SVGExternalResourcesRequired.h" | 27 #include "core/svg/SVGExternalResourcesRequired.h" |
28 #include "core/svg/SVGLangSpace.h" | |
29 #include "core/svg/SVGPathByteStream.h" | 28 #include "core/svg/SVGPathByteStream.h" |
30 #include "core/svg/SVGPathSegList.h" | 29 #include "core/svg/SVGPathSegList.h" |
31 #include "core/svg/SVGStyledTransformableElement.h" | 30 #include "core/svg/SVGStyledTransformableElement.h" |
32 #include "core/svg/SVGTests.h" | 31 #include "core/svg/SVGTests.h" |
33 | 32 |
34 namespace WebCore { | 33 namespace WebCore { |
35 | 34 |
36 class SVGPathSegArcAbs; | 35 class SVGPathSegArcAbs; |
37 class SVGPathSegArcRel; | 36 class SVGPathSegArcRel; |
38 class SVGPathSegClosePath; | 37 class SVGPathSegClosePath; |
(...skipping 10 matching lines...) Expand all Loading... |
49 class SVGPathSegCurvetoQuadraticAbs; | 48 class SVGPathSegCurvetoQuadraticAbs; |
50 class SVGPathSegCurvetoQuadraticRel; | 49 class SVGPathSegCurvetoQuadraticRel; |
51 class SVGPathSegCurvetoCubicSmoothAbs; | 50 class SVGPathSegCurvetoCubicSmoothAbs; |
52 class SVGPathSegCurvetoCubicSmoothRel; | 51 class SVGPathSegCurvetoCubicSmoothRel; |
53 class SVGPathSegCurvetoQuadraticSmoothAbs; | 52 class SVGPathSegCurvetoQuadraticSmoothAbs; |
54 class SVGPathSegCurvetoQuadraticSmoothRel; | 53 class SVGPathSegCurvetoQuadraticSmoothRel; |
55 class SVGPathSegListPropertyTearOff; | 54 class SVGPathSegListPropertyTearOff; |
56 | 55 |
57 class SVGPathElement FINAL : public SVGStyledTransformableElement, | 56 class SVGPathElement FINAL : public SVGStyledTransformableElement, |
58 public SVGTests, | 57 public SVGTests, |
59 public SVGLangSpace, | |
60 public SVGExternalResourcesRequired { | 58 public SVGExternalResourcesRequired { |
61 public: | 59 public: |
62 static PassRefPtr<SVGPathElement> create(const QualifiedName&, Document*); | 60 static PassRefPtr<SVGPathElement> create(const QualifiedName&, Document*); |
63 | 61 |
64 float getTotalLength(); | 62 float getTotalLength(); |
65 FloatPoint getPointAtLength(float distance); | 63 FloatPoint getPointAtLength(float distance); |
66 unsigned getPathSegAtLength(float distance); | 64 unsigned getPathSegAtLength(float distance); |
67 | 65 |
68 PassRefPtr<SVGPathSegClosePath> createSVGPathSegClosePath(SVGPathSegRole rol
e = PathSegUndefinedRole); | 66 PassRefPtr<SVGPathSegClosePath> createSVGPathSegClosePath(SVGPathSegRole rol
e = PathSegUndefinedRole); |
69 PassRefPtr<SVGPathSegMovetoAbs> createSVGPathSegMovetoAbs(float x, float y,
SVGPathSegRole role = PathSegUndefinedRole); | 67 PassRefPtr<SVGPathSegMovetoAbs> createSVGPathSegMovetoAbs(float x, float y,
SVGPathSegRole role = PathSegUndefinedRole); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 139 |
142 inline SVGPathElement* toSVGPathElement(SVGElement* element) | 140 inline SVGPathElement* toSVGPathElement(SVGElement* element) |
143 { | 141 { |
144 ASSERT_WITH_SECURITY_IMPLICATION(!element || element->hasTagName(SVGNames::p
athTag)); | 142 ASSERT_WITH_SECURITY_IMPLICATION(!element || element->hasTagName(SVGNames::p
athTag)); |
145 return static_cast<SVGPathElement*>(element); | 143 return static_cast<SVGPathElement*>(element); |
146 } | 144 } |
147 | 145 |
148 } // namespace WebCore | 146 } // namespace WebCore |
149 | 147 |
150 #endif | 148 #endif |
OLD | NEW |