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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 PassRefPtrWillBeRawPtr<SVGPropertyBase> SVGAnimatedTypeAnimator::startAnimValAni
mation(const SVGElementInstances& list) | 181 PassRefPtrWillBeRawPtr<SVGPropertyBase> SVGAnimatedTypeAnimator::startAnimValAni
mation(const SVGElementInstances& list) |
182 { | 182 { |
183 ASSERT(isAnimatingSVGDom()); | 183 ASSERT(isAnimatingSVGDom()); |
184 SVGElement::InstanceUpdateBlocker blocker(m_contextElement); | 184 SVGElement::InstanceUpdateBlocker blocker(m_contextElement); |
185 | 185 |
186 return resetAnimation(list); | 186 return resetAnimation(list); |
187 } | 187 } |
188 | 188 |
189 void SVGAnimatedTypeAnimator::stopAnimValAnimation(const SVGElementInstances& li
st) | 189 void SVGAnimatedTypeAnimator::stopAnimValAnimation(const SVGElementInstances& li
st) |
190 { | 190 { |
191 ASSERT(isAnimatingSVGDom()); | 191 if (!isAnimatingSVGDom()) |
| 192 return; |
| 193 |
192 SVGElement::InstanceUpdateBlocker blocker(m_contextElement); | 194 SVGElement::InstanceUpdateBlocker blocker(m_contextElement); |
193 | 195 |
194 for (SVGElement* elementInstance : list) { | 196 for (SVGElement* elementInstance : list) { |
195 RefPtrWillBeRawPtr<SVGAnimatedPropertyBase> animatedProperty = elementIn
stance->propertyFromAttribute(m_animatedProperty->attributeName()); | 197 RefPtrWillBeRawPtr<SVGAnimatedPropertyBase> animatedProperty = elementIn
stance->propertyFromAttribute(m_animatedProperty->attributeName()); |
196 if (animatedProperty) | 198 if (animatedProperty) |
197 animatedProperty->animationEnded(); | 199 animatedProperty->animationEnded(); |
198 } | 200 } |
199 } | 201 } |
200 | 202 |
201 PassRefPtrWillBeRawPtr<SVGPropertyBase> SVGAnimatedTypeAnimator::resetAnimValToB
aseVal(const SVGElementInstances& list) | 203 PassRefPtrWillBeRawPtr<SVGPropertyBase> SVGAnimatedTypeAnimator::resetAnimValToB
aseVal(const SVGElementInstances& list) |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 } | 252 } |
251 | 253 |
252 void SVGAnimatedTypeAnimator::trace(Visitor* visitor) | 254 void SVGAnimatedTypeAnimator::trace(Visitor* visitor) |
253 { | 255 { |
254 visitor->trace(m_animationElement); | 256 visitor->trace(m_animationElement); |
255 visitor->trace(m_contextElement); | 257 visitor->trace(m_contextElement); |
256 visitor->trace(m_animatedProperty); | 258 visitor->trace(m_animatedProperty); |
257 } | 259 } |
258 | 260 |
259 } | 261 } |
OLD | NEW |