| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 if (shouldApply == DontApplyAnimation) | 168 if (shouldApply == DontApplyAnimation) |
| 169 return; | 169 return; |
| 170 | 170 |
| 171 if (shouldApply == ApplyXMLAnimation) { | 171 if (shouldApply == ApplyXMLAnimation) { |
| 172 // SVG DOM animVal animation code-path. | 172 // SVG DOM animVal animation code-path. |
| 173 WillBeHeapVector<RawPtrWillBeMember<SVGElement> > animatedElements = fin
dElementInstances(targetElement); | 173 WillBeHeapVector<RawPtrWillBeMember<SVGElement> > animatedElements = fin
dElementInstances(targetElement); |
| 174 ASSERT(!animatedElements.isEmpty()); | 174 ASSERT(!animatedElements.isEmpty()); |
| 175 | 175 |
| 176 WillBeHeapVector<RawPtrWillBeMember<SVGElement> >::const_iterator end =
animatedElements.end(); | 176 WillBeHeapVector<RawPtrWillBeMember<SVGElement> >::const_iterator end =
animatedElements.end(); |
| 177 for (WillBeHeapVector<RawPtrWillBeMember<SVGElement> >::const_iterator i
t = animatedElements.begin(); it != end; ++it) | 177 for (WillBeHeapVector<RawPtrWillBeMember<SVGElement> >::const_iterator i
t = animatedElements.begin(); it != end; ++it) |
| 178 document().accessSVGExtensions().addElementReferencingTarget(this, *
it); | 178 addReferenceTo(*it); |
| 179 | 179 |
| 180 if (!m_animatedProperty) | 180 if (!m_animatedProperty) |
| 181 m_animatedProperty = animator->startAnimValAnimation(animatedElement
s); | 181 m_animatedProperty = animator->startAnimValAnimation(animatedElement
s); |
| 182 else | 182 else |
| 183 m_animatedProperty = animator->resetAnimValToBaseVal(animatedElement
s); | 183 m_animatedProperty = animator->resetAnimValToBaseVal(animatedElement
s); |
| 184 | 184 |
| 185 return; | 185 return; |
| 186 } | 186 } |
| 187 | 187 |
| 188 // CSS properties animation code-path. | 188 // CSS properties animation code-path. |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 return m_animator.get(); | 396 return m_animator.get(); |
| 397 } | 397 } |
| 398 | 398 |
| 399 void SVGAnimateElement::trace(Visitor* visitor) | 399 void SVGAnimateElement::trace(Visitor* visitor) |
| 400 { | 400 { |
| 401 visitor->trace(m_animator); | 401 visitor->trace(m_animator); |
| 402 SVGAnimationElement::trace(visitor); | 402 SVGAnimationElement::trace(visitor); |
| 403 } | 403 } |
| 404 | 404 |
| 405 } | 405 } |
| OLD | NEW |