| 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 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 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 25 matching lines...) Expand all Loading... |
| 36 class SVGAnimateElement : public SVGAnimationElement { | 36 class SVGAnimateElement : public SVGAnimationElement { |
| 37 public: | 37 public: |
| 38 static PassRefPtr<SVGAnimateElement> create(Document&); | 38 static PassRefPtr<SVGAnimateElement> create(Document&); |
| 39 virtual ~SVGAnimateElement(); | 39 virtual ~SVGAnimateElement(); |
| 40 | 40 |
| 41 AnimatedPropertyType determineAnimatedPropertyType(SVGElement*) const; | 41 AnimatedPropertyType determineAnimatedPropertyType(SVGElement*) const; |
| 42 | 42 |
| 43 protected: | 43 protected: |
| 44 SVGAnimateElement(const QualifiedName&, Document&); | 44 SVGAnimateElement(const QualifiedName&, Document&); |
| 45 | 45 |
| 46 virtual void resetAnimatedType(); | 46 virtual void resetAnimatedType() OVERRIDE FINAL; |
| 47 virtual void clearAnimatedType(SVGElement* targetElement); | 47 virtual void clearAnimatedType(SVGElement* targetElement) OVERRIDE FINAL; |
| 48 | 48 |
| 49 virtual bool calculateToAtEndOfDurationValue(const String& toAtEndOfDuration
String); | 49 virtual bool calculateToAtEndOfDurationValue(const String& toAtEndOfDuration
String) OVERRIDE FINAL; |
| 50 virtual bool calculateFromAndToValues(const String& fromString, const String
& toString); | 50 virtual bool calculateFromAndToValues(const String& fromString, const String
& toString) OVERRIDE FINAL; |
| 51 virtual bool calculateFromAndByValues(const String& fromString, const String
& byString); | 51 virtual bool calculateFromAndByValues(const String& fromString, const String
& byString) OVERRIDE FINAL; |
| 52 virtual void calculateAnimatedValue(float percentage, unsigned repeatCount,
SVGSMILElement* resultElement); | 52 virtual void calculateAnimatedValue(float percentage, unsigned repeatCount,
SVGSMILElement* resultElement) OVERRIDE FINAL; |
| 53 virtual void applyResultsToTarget(); | 53 virtual void applyResultsToTarget() OVERRIDE FINAL; |
| 54 virtual float calculateDistance(const String& fromString, const String& toSt
ring); | 54 virtual float calculateDistance(const String& fromString, const String& toSt
ring) OVERRIDE FINAL; |
| 55 virtual bool isAdditive() const OVERRIDE; | 55 virtual bool isAdditive() const OVERRIDE FINAL; |
| 56 | 56 |
| 57 virtual void setTargetElement(SVGElement*) OVERRIDE; | 57 virtual void setTargetElement(SVGElement*) OVERRIDE FINAL; |
| 58 virtual void setAttributeName(const QualifiedName&) OVERRIDE; | 58 virtual void setAttributeName(const QualifiedName&) OVERRIDE FINAL; |
| 59 | 59 |
| 60 AnimatedPropertyType m_animatedPropertyType; | 60 AnimatedPropertyType m_animatedPropertyType; |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 void resetAnimatedPropertyType(); | 63 void resetAnimatedPropertyType(); |
| 64 SVGAnimatedTypeAnimator* ensureAnimator(); | 64 SVGAnimatedTypeAnimator* ensureAnimator(); |
| 65 bool animatedPropertyTypeSupportsAddition() const; | 65 bool animatedPropertyTypeSupportsAddition() const; |
| 66 | 66 |
| 67 virtual bool hasValidAttributeType(); | 67 virtual bool hasValidAttributeType() OVERRIDE; |
| 68 | 68 |
| 69 OwnPtr<SVGAnimatedType> m_fromType; | 69 OwnPtr<SVGAnimatedType> m_fromType; |
| 70 OwnPtr<SVGAnimatedType> m_toType; | 70 OwnPtr<SVGAnimatedType> m_toType; |
| 71 OwnPtr<SVGAnimatedType> m_toAtEndOfDurationType; | 71 OwnPtr<SVGAnimatedType> m_toAtEndOfDurationType; |
| 72 OwnPtr<SVGAnimatedType> m_animatedType; | 72 OwnPtr<SVGAnimatedType> m_animatedType; |
| 73 | 73 |
| 74 SVGElementAnimatedPropertyList m_animatedProperties; | 74 SVGElementAnimatedPropertyList m_animatedProperties; |
| 75 OwnPtr<SVGAnimatedTypeAnimator> m_animator; | 75 OwnPtr<SVGAnimatedTypeAnimator> m_animator; |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 inline bool isSVGAnimateElement(const Node& node) | 78 inline bool isSVGAnimateElement(const Node& node) |
| 79 { | 79 { |
| 80 return node.hasTagName(SVGNames::animateTag) | 80 return node.hasTagName(SVGNames::animateTag) |
| 81 || node.hasTagName(SVGNames::animateColorTag) | 81 || node.hasTagName(SVGNames::animateColorTag) |
| 82 || node.hasTagName(SVGNames::animateTransformTag) | 82 || node.hasTagName(SVGNames::animateTransformTag) |
| 83 || node.hasTagName(SVGNames::setTag); | 83 || node.hasTagName(SVGNames::setTag); |
| 84 } | 84 } |
| 85 | 85 |
| 86 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGAnimateElement); | 86 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGAnimateElement); |
| 87 | 87 |
| 88 } // namespace WebCore | 88 } // namespace WebCore |
| 89 | 89 |
| 90 #endif // SVGAnimateElement_h | 90 #endif // SVGAnimateElement_h |
| OLD | NEW |