| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 if (getAnimationMode() == FromByAnimation && !animatedPropertyTypeSupportsAd
dition()) | 150 if (getAnimationMode() == FromByAnimation && !animatedPropertyTypeSupportsAd
dition()) |
| 151 return false; | 151 return false; |
| 152 | 152 |
| 153 ASSERT(!isSVGSetElement(*this)); | 153 ASSERT(!isSVGSetElement(*this)); |
| 154 | 154 |
| 155 determinePropertyValueTypes(fromString, byString); | 155 determinePropertyValueTypes(fromString, byString); |
| 156 m_animator.calculateFromAndByValues(m_fromProperty, m_toProperty, fromString
, byString); | 156 m_animator.calculateFromAndByValues(m_fromProperty, m_toProperty, fromString
, byString); |
| 157 return true; | 157 return true; |
| 158 } | 158 } |
| 159 | 159 |
| 160 SVGElementInstances SVGAnimateElement::findElementInstances(SVGElement* targetEl
ement) | |
| 161 { | |
| 162 ASSERT(targetElement); | |
| 163 SVGElementInstances animatedElements; | |
| 164 | |
| 165 animatedElements.append(targetElement); | |
| 166 | |
| 167 const auto& instances = targetElement->instancesForElement(); | |
| 168 animatedElements.appendRange(instances.begin(), instances.end()); | |
| 169 | |
| 170 return animatedElements; | |
| 171 } | |
| 172 | |
| 173 void SVGAnimateElement::resetAnimatedType() | 160 void SVGAnimateElement::resetAnimatedType() |
| 174 { | 161 { |
| 175 SVGElement* targetElement = this->targetElement(); | 162 SVGElement* targetElement = this->targetElement(); |
| 176 const QualifiedName& attributeName = this->attributeName(); | 163 const QualifiedName& attributeName = this->attributeName(); |
| 177 | 164 |
| 178 m_animator.reset(targetElement); | 165 m_animator.reset(targetElement); |
| 179 | 166 |
| 180 ShouldApplyAnimationType shouldApply = shouldApplyAnimation(targetElement, a
ttributeName); | 167 ShouldApplyAnimationType shouldApply = shouldApplyAnimation(targetElement, a
ttributeName); |
| 181 if (shouldApply == DontApplyAnimation) | 168 if (shouldApply == DontApplyAnimation) |
| 182 return; | 169 return; |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 { | 308 { |
| 322 visitor->trace(m_fromProperty); | 309 visitor->trace(m_fromProperty); |
| 323 visitor->trace(m_toProperty); | 310 visitor->trace(m_toProperty); |
| 324 visitor->trace(m_toAtEndOfDurationProperty); | 311 visitor->trace(m_toAtEndOfDurationProperty); |
| 325 visitor->trace(m_animatedProperty); | 312 visitor->trace(m_animatedProperty); |
| 326 visitor->trace(m_animator); | 313 visitor->trace(m_animator); |
| 327 SVGAnimationElement::trace(visitor); | 314 SVGAnimationElement::trace(visitor); |
| 328 } | 315 } |
| 329 | 316 |
| 330 } // namespace blink | 317 } // namespace blink |
| OLD | NEW |