| 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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 unsigned index = effectivePercent == 1 ? m_values.size() - 2 : static_cast<u
nsigned>(effectivePercent * (m_values.size() - 1)); | 484 unsigned index = effectivePercent == 1 ? m_values.size() - 2 : static_cast<u
nsigned>(effectivePercent * (m_values.size() - 1)); |
| 485 from = m_values[index]; | 485 from = m_values[index]; |
| 486 to = m_values[index + 1]; | 486 to = m_values[index + 1]; |
| 487 } | 487 } |
| 488 | 488 |
| 489 AnimatedPropertyType SVGAnimationElement::determineAnimatedPropertyType() const | 489 AnimatedPropertyType SVGAnimationElement::determineAnimatedPropertyType() const |
| 490 { | 490 { |
| 491 if (!targetElement()) | 491 if (!targetElement()) |
| 492 return AnimatedString; | 492 return AnimatedString; |
| 493 | 493 |
| 494 RefPtr<NewSVGAnimatedPropertyBase> property = targetElement()->propertyFromA
ttribute(attributeName()); | 494 RefPtr<SVGAnimatedPropertyBase> property = targetElement()->propertyFromAttr
ibute(attributeName()); |
| 495 if (property) { | 495 if (property) { |
| 496 AnimatedPropertyType propertyType = property->type(); | 496 AnimatedPropertyType propertyType = property->type(); |
| 497 | 497 |
| 498 // Only <animatedTransform> is allowed to animate AnimatedTransformList. | 498 // Only <animatedTransform> is allowed to animate AnimatedTransformList. |
| 499 // http://www.w3.org/TR/SVG/animate.html#AnimationAttributesAndPropertie
s | 499 // http://www.w3.org/TR/SVG/animate.html#AnimationAttributesAndPropertie
s |
| 500 if (propertyType == AnimatedTransformList && !isSVGAnimateTransformEleme
nt(*this)) | 500 if (propertyType == AnimatedTransformList && !isSVGAnimateTransformEleme
nt(*this)) |
| 501 return AnimatedUnknown; | 501 return AnimatedUnknown; |
| 502 | 502 |
| 503 return propertyType; | 503 return propertyType; |
| 504 } | 504 } |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 SVGSMILElement::setAttributeName(attributeName); | 709 SVGSMILElement::setAttributeName(attributeName); |
| 710 checkInvalidCSSAttributeType(targetElement()); | 710 checkInvalidCSSAttributeType(targetElement()); |
| 711 } | 711 } |
| 712 | 712 |
| 713 void SVGAnimationElement::checkInvalidCSSAttributeType(SVGElement* target) | 713 void SVGAnimationElement::checkInvalidCSSAttributeType(SVGElement* target) |
| 714 { | 714 { |
| 715 m_hasInvalidCSSAttributeType = target && hasValidAttributeName() && attribut
eType() == AttributeTypeCSS && !isTargetAttributeCSSProperty(target, attributeNa
me()); | 715 m_hasInvalidCSSAttributeType = target && hasValidAttributeName() && attribut
eType() == AttributeTypeCSS && !isTargetAttributeCSSProperty(target, attributeNa
me()); |
| 716 } | 716 } |
| 717 | 717 |
| 718 } | 718 } |
| OLD | NEW |