OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2008 Apple Inc. All rights reserved. | 4 * Copyright (C) 2008 Apple Inc. All rights reserved. |
5 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 5 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 ShouldApplyAnimation shouldApply = shouldApplyAnimation(targetElement, attri
buteName); | 199 ShouldApplyAnimation shouldApply = shouldApplyAnimation(targetElement, attri
buteName); |
200 | 200 |
201 if (shouldApply == DontApplyAnimation) | 201 if (shouldApply == DontApplyAnimation) |
202 return; | 202 return; |
203 | 203 |
204 if (shouldApply == ApplyXMLAnimation) { | 204 if (shouldApply == ApplyXMLAnimation) { |
205 // SVG DOM animVal animation code-path. | 205 // SVG DOM animVal animation code-path. |
206 m_animatedProperties = animator->findAnimatedPropertiesForAttributeName(
targetElement, attributeName); | 206 m_animatedProperties = animator->findAnimatedPropertiesForAttributeName(
targetElement, attributeName); |
207 SVGElementAnimatedPropertyList::const_iterator end = m_animatedPropertie
s.end(); | 207 SVGElementAnimatedPropertyList::const_iterator end = m_animatedPropertie
s.end(); |
208 for (SVGElementAnimatedPropertyList::const_iterator it = m_animatedPrope
rties.begin(); it != end; ++it) | 208 for (SVGElementAnimatedPropertyList::const_iterator it = m_animatedPrope
rties.begin(); it != end; ++it) |
209 document().accessSVGExtensions()->addElementReferencingTarget(this,
it->element); | 209 document().accessSVGExtensions().addElementReferencingTarget(this, i
t->element); |
210 | 210 |
211 ASSERT(!m_animatedProperties.isEmpty()); | 211 ASSERT(!m_animatedProperties.isEmpty()); |
212 | 212 |
213 ASSERT(propertyTypesAreConsistent(m_animatedPropertyType, m_animatedProp
erties)); | 213 ASSERT(propertyTypesAreConsistent(m_animatedPropertyType, m_animatedProp
erties)); |
214 if (!m_animatedType) | 214 if (!m_animatedType) |
215 m_animatedType = animator->startAnimValAnimation(m_animatedPropertie
s); | 215 m_animatedType = animator->startAnimValAnimation(m_animatedPropertie
s); |
216 else { | 216 else { |
217 animator->resetAnimValToBaseVal(m_animatedProperties, m_animatedType
.get()); | 217 animator->resetAnimValToBaseVal(m_animatedProperties, m_animatedType
.get()); |
218 animator->animValDidChange(m_animatedProperties); | 218 animator->animValDidChange(m_animatedProperties); |
219 } | 219 } |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 | 425 |
426 SVGAnimatedTypeAnimator* SVGAnimateElement::ensureAnimator() | 426 SVGAnimatedTypeAnimator* SVGAnimateElement::ensureAnimator() |
427 { | 427 { |
428 if (!m_animator) | 428 if (!m_animator) |
429 m_animator = SVGAnimatorFactory::create(this, targetElement(), m_animate
dPropertyType); | 429 m_animator = SVGAnimatorFactory::create(this, targetElement(), m_animate
dPropertyType); |
430 ASSERT(m_animatedPropertyType == m_animator->type()); | 430 ASSERT(m_animatedPropertyType == m_animator->type()); |
431 return m_animator.get(); | 431 return m_animator.get(); |
432 } | 432 } |
433 | 433 |
434 } | 434 } |
OLD | NEW |