| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 | 135 |
| 136 String SVGViewSpec::preserveAspectRatioString() const | 136 String SVGViewSpec::preserveAspectRatioString() const |
| 137 { | 137 { |
| 138 return SVGPropertyTraits<SVGPreserveAspectRatio>::toString(preserveAspectRat
ioBaseValue()); | 138 return SVGPropertyTraits<SVGPreserveAspectRatio>::toString(preserveAspectRat
ioBaseValue()); |
| 139 } | 139 } |
| 140 | 140 |
| 141 SVGElement* SVGViewSpec::viewTarget() const | 141 SVGElement* SVGViewSpec::viewTarget() const |
| 142 { | 142 { |
| 143 if (!m_contextElement) | 143 if (!m_contextElement) |
| 144 return 0; | 144 return 0; |
| 145 Element* element = m_contextElement->treeScope().getElementById(m_viewTarget
String); | 145 Element* element = m_contextElement->treeScope()->getElementById(m_viewTarge
tString); |
| 146 if (!element || !element->isSVGElement()) | 146 if (!element || !element->isSVGElement()) |
| 147 return 0; | 147 return 0; |
| 148 return toSVGElement(element); | 148 return toSVGElement(element); |
| 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. |
| (...skipping 141 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 |