| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 ASSERT_NOT_REACHED(); | 133 ASSERT_NOT_REACHED(); |
| 134 } | 134 } |
| 135 | 135 |
| 136 void SVGPolyElement::synchronizePoints(SVGElement* contextElement) | 136 void SVGPolyElement::synchronizePoints(SVGElement* contextElement) |
| 137 { | 137 { |
| 138 ASSERT(contextElement); | 138 ASSERT(contextElement); |
| 139 SVGPolyElement* ownerType = toSVGPolyElement(contextElement); | 139 SVGPolyElement* ownerType = toSVGPolyElement(contextElement); |
| 140 if (!ownerType->m_points.shouldSynchronize) | 140 if (!ownerType->m_points.shouldSynchronize) |
| 141 return; | 141 return; |
| 142 ownerType->m_points.synchronize(ownerType, pointsPropertyInfo()->attributeNa
me, ownerType->m_points.value.valueAsString()); | 142 ownerType->m_points.synchronize(ownerType, pointsPropertyInfo()->attributeNa
me, AtomicString(ownerType->m_points.value.valueAsString())); |
| 143 } | 143 } |
| 144 | 144 |
| 145 PassRefPtr<SVGAnimatedProperty> SVGPolyElement::lookupOrCreatePointsWrapper(SVGE
lement* contextElement) | 145 PassRefPtr<SVGAnimatedProperty> SVGPolyElement::lookupOrCreatePointsWrapper(SVGE
lement* contextElement) |
| 146 { | 146 { |
| 147 ASSERT(contextElement); | 147 ASSERT(contextElement); |
| 148 SVGPolyElement* ownerType = toSVGPolyElement(contextElement); | 148 SVGPolyElement* ownerType = toSVGPolyElement(contextElement); |
| 149 return SVGAnimatedProperty::lookupOrCreateWrapper<SVGPolyElement, SVGAnimate
dPointList, SVGPointList> | 149 return SVGAnimatedProperty::lookupOrCreateWrapper<SVGPolyElement, SVGAnimate
dPointList, SVGPointList> |
| 150 (ownerType, pointsPropertyInfo(), ownerType->m_points.value); | 150 (ownerType, pointsPropertyInfo(), ownerType->m_points.value); |
| 151 } | 151 } |
| 152 | 152 |
| 153 SVGListPropertyTearOff<SVGPointList>* SVGPolyElement::points() | 153 SVGListPropertyTearOff<SVGPointList>* SVGPolyElement::points() |
| 154 { | 154 { |
| 155 m_points.shouldSynchronize = true; | 155 m_points.shouldSynchronize = true; |
| 156 return static_cast<SVGListPropertyTearOff<SVGPointList>*>(static_pointer_cas
t<SVGAnimatedPointList>(lookupOrCreatePointsWrapper(this))->baseVal()); | 156 return static_cast<SVGListPropertyTearOff<SVGPointList>*>(static_pointer_cas
t<SVGAnimatedPointList>(lookupOrCreatePointsWrapper(this))->baseVal()); |
| 157 } | 157 } |
| 158 | 158 |
| 159 SVGListPropertyTearOff<SVGPointList>* SVGPolyElement::animatedPoints() | 159 SVGListPropertyTearOff<SVGPointList>* SVGPolyElement::animatedPoints() |
| 160 { | 160 { |
| 161 m_points.shouldSynchronize = true; | 161 m_points.shouldSynchronize = true; |
| 162 return static_cast<SVGListPropertyTearOff<SVGPointList>*>(static_pointer_cas
t<SVGAnimatedPointList>(lookupOrCreatePointsWrapper(this))->animVal()); | 162 return static_cast<SVGListPropertyTearOff<SVGPointList>*>(static_pointer_cas
t<SVGAnimatedPointList>(lookupOrCreatePointsWrapper(this))->animVal()); |
| 163 } | 163 } |
| 164 | 164 |
| 165 } | 165 } |
| OLD | NEW |