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 |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 } | 149 } |
150 | 150 |
151 SVGTransformListPropertyTearOff* SVGViewSpec::transform() | 151 SVGTransformListPropertyTearOff* SVGViewSpec::transform() |
152 { | 152 { |
153 if (!m_contextElement) | 153 if (!m_contextElement) |
154 return 0; | 154 return 0; |
155 // Return the animVal here, as its readonly by default - which is exactly wh
at we want here. | 155 // Return the animVal here, as its readonly by default - which is exactly wh
at we want here. |
156 return static_cast<SVGTransformListPropertyTearOff*>(static_pointer_cast<SVG
AnimatedTransformList>(lookupOrCreateTransformWrapper(this))->animVal()); | 156 return static_cast<SVGTransformListPropertyTearOff*>(static_pointer_cast<SVG
AnimatedTransformList>(lookupOrCreateTransformWrapper(this))->animVal()); |
157 } | 157 } |
158 | 158 |
159 PassRefPtr<SVGAnimatedRect> SVGViewSpec::viewBoxAnimated() | 159 PassRefPtr<SVGAnimatedRect> SVGViewSpec::viewBox() |
160 { | 160 { |
161 if (!m_contextElement) | 161 if (!m_contextElement) |
162 return 0; | 162 return 0; |
163 return static_pointer_cast<SVGAnimatedRect>(lookupOrCreateViewBoxWrapper(thi
s)); | 163 return static_pointer_cast<SVGAnimatedRect>(lookupOrCreateViewBoxWrapper(thi
s)); |
164 } | 164 } |
165 | 165 |
166 PassRefPtr<SVGAnimatedPreserveAspectRatio> SVGViewSpec::preserveAspectRatioAnima
ted() | 166 PassRefPtr<SVGAnimatedPreserveAspectRatio> SVGViewSpec::preserveAspectRatio() |
167 { | 167 { |
168 if (!m_contextElement) | 168 if (!m_contextElement) |
169 return 0; | 169 return 0; |
170 return static_pointer_cast<SVGAnimatedPreserveAspectRatio>(lookupOrCreatePre
serveAspectRatioWrapper(this)); | 170 return static_pointer_cast<SVGAnimatedPreserveAspectRatio>(lookupOrCreatePre
serveAspectRatioWrapper(this)); |
171 } | 171 } |
172 | 172 |
173 PassRefPtr<SVGAnimatedProperty> SVGViewSpec::lookupOrCreateViewBoxWrapper(SVGVie
wSpec* ownerType) | 173 PassRefPtr<SVGAnimatedProperty> SVGViewSpec::lookupOrCreateViewBoxWrapper(SVGVie
wSpec* ownerType) |
174 { | 174 { |
175 ASSERT(ownerType); | 175 ASSERT(ownerType); |
176 ASSERT(ownerType->contextElement()); | 176 ASSERT(ownerType->contextElement()); |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 const LChar* ptr = spec.characters8(); | 297 const LChar* ptr = spec.characters8(); |
298 const LChar* end = ptr + spec.length(); | 298 const LChar* end = ptr + spec.length(); |
299 return parseViewSpecInternal(ptr, end); | 299 return parseViewSpecInternal(ptr, end); |
300 } | 300 } |
301 const UChar* ptr = spec.characters16(); | 301 const UChar* ptr = spec.characters16(); |
302 const UChar* end = ptr + spec.length(); | 302 const UChar* end = ptr + spec.length(); |
303 return parseViewSpecInternal(ptr, end); | 303 return parseViewSpecInternal(ptr, end); |
304 } | 304 } |
305 | 305 |
306 } | 306 } |
OLD | NEW |