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 #include "core/svg/SVGViewSpec.h" | 21 #include "core/svg/SVGViewSpec.h" |
22 | 22 |
23 #include "SVGNames.h" | 23 #include "SVGNames.h" |
24 #include "bindings/v8/ExceptionState.h" | 24 #include "bindings/v8/ExceptionState.h" |
25 #include "core/dom/Document.h" | 25 #include "core/dom/Document.h" |
26 #include "core/svg/SVGAnimatedTransformList.h" | 26 #include "core/svg/SVGAnimatedTransformList.h" |
27 #include "core/svg/SVGFitToViewBox.h" | |
28 #include "core/svg/SVGParserUtilities.h" | 27 #include "core/svg/SVGParserUtilities.h" |
29 #include "core/svg/SVGSVGElement.h" | |
30 | 28 |
31 namespace WebCore { | 29 namespace WebCore { |
32 | 30 |
33 // Define custom animated property 'viewBox'. | 31 // Define custom animated property 'viewBox'. |
34 const SVGPropertyInfo* SVGViewSpec::viewBoxPropertyInfo() | 32 const SVGPropertyInfo* SVGViewSpec::viewBoxPropertyInfo() |
35 { | 33 { |
36 static const SVGPropertyInfo* s_propertyInfo = 0; | 34 static const SVGPropertyInfo* s_propertyInfo = 0; |
37 if (!s_propertyInfo) { | 35 if (!s_propertyInfo) { |
38 s_propertyInfo = new SVGPropertyInfo(AnimatedRect, | 36 s_propertyInfo = new SVGPropertyInfo(AnimatedRect, |
39 PropertyIsReadOnly, | 37 PropertyIsReadOnly, |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 const LChar* ptr = spec.characters8(); | 294 const LChar* ptr = spec.characters8(); |
297 const LChar* end = ptr + spec.length(); | 295 const LChar* end = ptr + spec.length(); |
298 return parseViewSpecInternal(ptr, end); | 296 return parseViewSpecInternal(ptr, end); |
299 } | 297 } |
300 const UChar* ptr = spec.characters16(); | 298 const UChar* ptr = spec.characters16(); |
301 const UChar* end = ptr + spec.length(); | 299 const UChar* end = ptr + spec.length(); |
302 return parseViewSpecInternal(ptr, end); | 300 return parseViewSpecInternal(ptr, end); |
303 } | 301 } |
304 | 302 |
305 } | 303 } |
OLD | NEW |