OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2010 Rob Buis <buis@kde.org> | 2 * Copyright (C) 2007, 2010 Rob Buis <buis@kde.org> |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 * Library General Public License for more details. | 12 * Library General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU Library General Public License | 14 * You should have received a copy of the GNU Library General Public License |
15 * along with this library; see the file COPYING.LIB. If not, write to | 15 * along with this library; see the file COPYING.LIB. If not, write to |
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
17 * Boston, MA 02110-1301, USA. | 17 * Boston, MA 02110-1301, USA. |
18 */ | 18 */ |
19 | 19 |
20 #include "config.h" | 20 #include "config.h" |
21 | 21 |
22 #if ENABLE(SVG) | 22 #if ENABLE(SVG) |
23 #include "SVGViewSpec.h" | 23 #include "SVGViewSpec.h" |
24 | 24 |
25 #include "Document.h" | |
26 #include "SVGAnimatedTransformList.h" | 25 #include "SVGAnimatedTransformList.h" |
27 #include "SVGFitToViewBox.h" | 26 #include "SVGFitToViewBox.h" |
28 #include "SVGNames.h" | 27 #include "SVGNames.h" |
29 #include "SVGParserUtilities.h" | 28 #include "SVGParserUtilities.h" |
30 #include "SVGSVGElement.h" | 29 #include "SVGSVGElement.h" |
31 #include "SVGTransformable.h" | 30 #include "SVGTransformable.h" |
| 31 #include "core/dom/Document.h" |
32 | 32 |
33 namespace WebCore { | 33 namespace WebCore { |
34 | 34 |
35 // Define custom animated property 'viewBox'. | 35 // Define custom animated property 'viewBox'. |
36 const SVGPropertyInfo* SVGViewSpec::viewBoxPropertyInfo() | 36 const SVGPropertyInfo* SVGViewSpec::viewBoxPropertyInfo() |
37 { | 37 { |
38 static const SVGPropertyInfo* s_propertyInfo = 0; | 38 static const SVGPropertyInfo* s_propertyInfo = 0; |
39 if (!s_propertyInfo) { | 39 if (!s_propertyInfo) { |
40 s_propertyInfo = new SVGPropertyInfo(AnimatedRect, | 40 s_propertyInfo = new SVGPropertyInfo(AnimatedRect, |
41 PropertyIsReadOnly, | 41 PropertyIsReadOnly, |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 | 290 |
291 if (currViewSpec >= end || *currViewSpec != ')') | 291 if (currViewSpec >= end || *currViewSpec != ')') |
292 return false; | 292 return false; |
293 | 293 |
294 return true; | 294 return true; |
295 } | 295 } |
296 | 296 |
297 } | 297 } |
298 | 298 |
299 #endif // ENABLE(SVG) | 299 #endif // ENABLE(SVG) |
OLD | NEW |