| 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, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
| 5 * Copyright (C) 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2008 Apple Inc. All rights reserved. |
| 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> | 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> |
| 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 return; | 235 return; |
| 236 } | 236 } |
| 237 | 237 |
| 238 animationAttributeChanged(); | 238 animationAttributeChanged(); |
| 239 } | 239 } |
| 240 | 240 |
| 241 void SVGAnimationElement::animationAttributeChanged() | 241 void SVGAnimationElement::animationAttributeChanged() |
| 242 { | 242 { |
| 243 // Assumptions may not hold after an attribute change. | 243 // Assumptions may not hold after an attribute change. |
| 244 m_animationValid = false; | 244 m_animationValid = false; |
| 245 m_lastValuesAnimationFrom = String(); |
| 246 m_lastValuesAnimationTo = String(); |
| 245 setInactive(); | 247 setInactive(); |
| 246 } | 248 } |
| 247 | 249 |
| 248 float SVGAnimationElement::getStartTime() const | 250 float SVGAnimationElement::getStartTime() const |
| 249 { | 251 { |
| 250 return narrowPrecisionToFloat(intervalBegin().value()); | 252 return narrowPrecisionToFloat(intervalBegin().value()); |
| 251 } | 253 } |
| 252 | 254 |
| 253 float SVGAnimationElement::getCurrentTime() const | 255 float SVGAnimationElement::getCurrentTime() const |
| 254 { | 256 { |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 695 SVGSMILElement::setAttributeName(attributeName); | 697 SVGSMILElement::setAttributeName(attributeName); |
| 696 checkInvalidCSSAttributeType(targetElement()); | 698 checkInvalidCSSAttributeType(targetElement()); |
| 697 } | 699 } |
| 698 | 700 |
| 699 void SVGAnimationElement::checkInvalidCSSAttributeType(SVGElement* target) | 701 void SVGAnimationElement::checkInvalidCSSAttributeType(SVGElement* target) |
| 700 { | 702 { |
| 701 m_hasInvalidCSSAttributeType = target && hasValidAttributeName() && attribut
eType() == AttributeTypeCSS && !isTargetAttributeCSSProperty(target, attributeNa
me()); | 703 m_hasInvalidCSSAttributeType = target && hasValidAttributeName() && attribut
eType() == AttributeTypeCSS && !isTargetAttributeCSSProperty(target, attributeNa
me()); |
| 702 } | 704 } |
| 703 | 705 |
| 704 } | 706 } |
| OLD | NEW |