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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 132 |
133 String SVGViewSpec::preserveAspectRatioString() const | 133 String SVGViewSpec::preserveAspectRatioString() const |
134 { | 134 { |
135 return SVGPropertyTraits<SVGPreserveAspectRatio>::toString(preserveAspectRat
ioBaseValue()); | 135 return SVGPropertyTraits<SVGPreserveAspectRatio>::toString(preserveAspectRat
ioBaseValue()); |
136 } | 136 } |
137 | 137 |
138 SVGElement* SVGViewSpec::viewTarget() const | 138 SVGElement* SVGViewSpec::viewTarget() const |
139 { | 139 { |
140 if (!m_contextElement) | 140 if (!m_contextElement) |
141 return 0; | 141 return 0; |
142 Element* element = m_contextElement.get()->treeScope().getElementById(m_view
TargetString); | 142 Element* element = m_contextElement.get()->treeScope().getElementById(Atomic
String(m_viewTargetString)); |
143 if (!element || !element->isSVGElement()) | 143 if (!element || !element->isSVGElement()) |
144 return 0; | 144 return 0; |
145 return toSVGElement(element); | 145 return toSVGElement(element); |
146 } | 146 } |
147 | 147 |
148 SVGTransformListPropertyTearOff* SVGViewSpec::transform() | 148 SVGTransformListPropertyTearOff* SVGViewSpec::transform() |
149 { | 149 { |
150 if (!m_contextElement) | 150 if (!m_contextElement) |
151 return 0; | 151 return 0; |
152 // Return the animVal here, as its readonly by default - which is exactly wh
at we want here. | 152 // Return the animVal here, as its readonly by default - which is exactly wh
at we want here. |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 const LChar* ptr = spec.characters8(); | 294 const LChar* ptr = spec.characters8(); |
295 const LChar* end = ptr + spec.length(); | 295 const LChar* end = ptr + spec.length(); |
296 return parseViewSpecInternal(ptr, end); | 296 return parseViewSpecInternal(ptr, end); |
297 } | 297 } |
298 const UChar* ptr = spec.characters16(); | 298 const UChar* ptr = spec.characters16(); |
299 const UChar* end = ptr + spec.length(); | 299 const UChar* end = ptr + spec.length(); |
300 return parseViewSpecInternal(ptr, end); | 300 return parseViewSpecInternal(ptr, end); |
301 } | 301 } |
302 | 302 |
303 } | 303 } |
OLD | NEW |