| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved. |
| 3 * Copyright (C) 2013 Samsung Electronics. All rights reserved. | 3 * Copyright (C) 2013 Samsung Electronics. All rights reserved. |
| 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 void setAnimatedValueOnAllTargetProperties(const SVGElementInstances& list, cons
t QualifiedName& attributeName, PassRefPtrWillBeRawPtr<SVGPropertyBase> passValu
e) | 167 void setAnimatedValueOnAllTargetProperties(const SVGElementInstances& list, cons
t QualifiedName& attributeName, PassRefPtrWillBeRawPtr<SVGPropertyBase> passValu
e) |
| 168 { | 168 { |
| 169 RefPtrWillBeRawPtr<SVGPropertyBase> value = passValue; | 169 RefPtrWillBeRawPtr<SVGPropertyBase> value = passValue; |
| 170 | 170 |
| 171 for (SVGElement* elementInstance : list) { | 171 for (SVGElement* elementInstance : list) { |
| 172 if (SVGAnimatedPropertyBase* animatedProperty = elementInstance->propert
yFromAttribute(attributeName)) | 172 if (SVGAnimatedPropertyBase* animatedProperty = elementInstance->propert
yFromAttribute(attributeName)) |
| 173 animatedProperty->setAnimatedValue(value); | 173 animatedProperty->setAnimatedValue(value); |
| 174 } | 174 } |
| 175 } | 175 } |
| 176 | 176 |
| 177 } | 177 } // namespace |
| 178 | 178 |
| 179 PassRefPtrWillBeRawPtr<SVGPropertyBase> SVGAnimatedTypeAnimator::resetAnimation(
const SVGElementInstances& list) | 179 PassRefPtrWillBeRawPtr<SVGPropertyBase> SVGAnimatedTypeAnimator::resetAnimation(
const SVGElementInstances& list) |
| 180 { | 180 { |
| 181 ASSERT(isAnimatingSVGDom()); | 181 ASSERT(isAnimatingSVGDom()); |
| 182 RefPtrWillBeRawPtr<SVGPropertyBase> animatedValue = m_animatedProperty->crea
teAnimatedValue(); | 182 RefPtrWillBeRawPtr<SVGPropertyBase> animatedValue = m_animatedProperty->crea
teAnimatedValue(); |
| 183 ASSERT(animatedValue->type() == m_type); | 183 ASSERT(animatedValue->type() == m_type); |
| 184 setAnimatedValueOnAllTargetProperties(list, m_animatedProperty->attributeNam
e(), animatedValue); | 184 setAnimatedValueOnAllTargetProperties(list, m_animatedProperty->attributeNam
e(), animatedValue); |
| 185 | 185 |
| 186 return animatedValue.release(); | 186 return animatedValue.release(); |
| 187 } | 187 } |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 return fromValue->calculateDistance(toValue, m_contextElement); | 258 return fromValue->calculateDistance(toValue, m_contextElement); |
| 259 } | 259 } |
| 260 | 260 |
| 261 DEFINE_TRACE(SVGAnimatedTypeAnimator) | 261 DEFINE_TRACE(SVGAnimatedTypeAnimator) |
| 262 { | 262 { |
| 263 visitor->trace(m_animationElement); | 263 visitor->trace(m_animationElement); |
| 264 visitor->trace(m_contextElement); | 264 visitor->trace(m_contextElement); |
| 265 visitor->trace(m_animatedProperty); | 265 visitor->trace(m_animatedProperty); |
| 266 } | 266 } |
| 267 | 267 |
| 268 } | 268 } // namespace blink |
| OLD | NEW |