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 #include "config.h" | 21 #include "config.h" |
22 | 22 |
23 #if ENABLE(SVG) | 23 #if ENABLE(SVG) |
24 #include "SVGPathElement.h" | 24 #include "SVGPathElement.h" |
25 | 25 |
26 #include "Attribute.h" | |
27 #include "SVGElementInstance.h" | 26 #include "SVGElementInstance.h" |
28 #include "SVGMPathElement.h" | 27 #include "SVGMPathElement.h" |
29 #include "SVGNames.h" | 28 #include "SVGNames.h" |
30 #include "SVGPathSegArc.h" | 29 #include "SVGPathSegArc.h" |
31 #include "SVGPathSegClosePath.h" | 30 #include "SVGPathSegClosePath.h" |
32 #include "SVGPathSegCurvetoCubic.h" | 31 #include "SVGPathSegCurvetoCubic.h" |
33 #include "SVGPathSegCurvetoCubicSmooth.h" | 32 #include "SVGPathSegCurvetoCubicSmooth.h" |
34 #include "SVGPathSegCurvetoQuadratic.h" | 33 #include "SVGPathSegCurvetoQuadratic.h" |
35 #include "SVGPathSegCurvetoQuadraticSmooth.h" | 34 #include "SVGPathSegCurvetoQuadraticSmooth.h" |
36 #include "SVGPathSegLineto.h" | 35 #include "SVGPathSegLineto.h" |
37 #include "SVGPathSegLinetoHorizontal.h" | 36 #include "SVGPathSegLinetoHorizontal.h" |
38 #include "SVGPathSegLinetoVertical.h" | 37 #include "SVGPathSegLinetoVertical.h" |
39 #include "SVGPathSegList.h" | 38 #include "SVGPathSegList.h" |
40 #include "SVGPathSegListBuilder.h" | 39 #include "SVGPathSegListBuilder.h" |
41 #include "SVGPathSegListPropertyTearOff.h" | 40 #include "SVGPathSegListPropertyTearOff.h" |
42 #include "SVGPathSegMoveto.h" | 41 #include "SVGPathSegMoveto.h" |
43 #include "SVGPathUtilities.h" | 42 #include "SVGPathUtilities.h" |
44 #include "SVGSVGElement.h" | 43 #include "SVGSVGElement.h" |
| 44 #include "core/dom/Attribute.h" |
45 #include "core/rendering/svg/RenderSVGPath.h" | 45 #include "core/rendering/svg/RenderSVGPath.h" |
46 #include "core/rendering/svg/RenderSVGResource.h" | 46 #include "core/rendering/svg/RenderSVGResource.h" |
47 | 47 |
48 namespace WebCore { | 48 namespace WebCore { |
49 | 49 |
50 // Define custom animated property 'd'. | 50 // Define custom animated property 'd'. |
51 const SVGPropertyInfo* SVGPathElement::dPropertyInfo() | 51 const SVGPropertyInfo* SVGPathElement::dPropertyInfo() |
52 { | 52 { |
53 static const SVGPropertyInfo* s_propertyInfo = 0; | 53 static const SVGPropertyInfo* s_propertyInfo = 0; |
54 if (!s_propertyInfo) { | 54 if (!s_propertyInfo) { |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 | 407 |
408 RenderObject* SVGPathElement::createRenderer(RenderArena* arena, RenderStyle*) | 408 RenderObject* SVGPathElement::createRenderer(RenderArena* arena, RenderStyle*) |
409 { | 409 { |
410 // By default, any subclass is expected to do path-based drawing | 410 // By default, any subclass is expected to do path-based drawing |
411 return new (arena) RenderSVGPath(this); | 411 return new (arena) RenderSVGPath(this); |
412 } | 412 } |
413 | 413 |
414 } | 414 } |
415 | 415 |
416 #endif // ENABLE(SVG) | 416 #endif // ENABLE(SVG) |
OLD | NEW |