| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 virtual ~SVGAnimatedTypeAnimator() { } | 34 virtual ~SVGAnimatedTypeAnimator() { } |
| 35 virtual PassOwnPtr<SVGAnimatedType> constructFromString(const String&) = 0; | 35 virtual PassOwnPtr<SVGAnimatedType> constructFromString(const String&) = 0; |
| 36 | 36 |
| 37 virtual void calculateFromAndToValues(OwnPtr<SVGAnimatedType>& fromValue, Ow
nPtr<SVGAnimatedType>& toValue, const String& fromString, const String& toString
) = 0; | 37 virtual void calculateFromAndToValues(OwnPtr<SVGAnimatedType>& fromValue, Ow
nPtr<SVGAnimatedType>& toValue, const String& fromString, const String& toString
) = 0; |
| 38 virtual void calculateFromAndByValues(OwnPtr<SVGAnimatedType>& fromValue, Ow
nPtr<SVGAnimatedType>& toValue, const String& fromString, const String& toString
) = 0; | 38 virtual void calculateFromAndByValues(OwnPtr<SVGAnimatedType>& fromValue, Ow
nPtr<SVGAnimatedType>& toValue, const String& fromString, const String& toString
) = 0; |
| 39 virtual void calculateAnimatedValue(float percentage, unsigned repeatCount, | 39 virtual void calculateAnimatedValue(float percentage, unsigned repeatCount, |
| 40 OwnPtr<SVGAnimatedType>& fromValue, OwnP
tr<SVGAnimatedType>& toValue, OwnPtr<SVGAnimatedType>& animatedValue) = 0; | 40 OwnPtr<SVGAnimatedType>& fromValue, OwnP
tr<SVGAnimatedType>& toValue, OwnPtr<SVGAnimatedType>& animatedValue) = 0; |
| 41 virtual float calculateDistance(const String& fromString, const String& toSt
ring) = 0; | 41 virtual float calculateDistance(const String& fromString, const String& toSt
ring) = 0; |
| 42 | 42 |
| 43 void setContextElement(SVGElement* contextElement) { m_contextElement = cont
extElement; } | 43 void setContextElement(SVGElement* contextElement) { m_contextElement = cont
extElement; } |
| 44 | 44 |
| 45 AnimatedPropertyType type() const { return m_type; } |
| 46 |
| 45 protected: | 47 protected: |
| 46 SVGAnimatedTypeAnimator(AnimatedPropertyType type, SVGAnimationElement* anim
ationElement, SVGElement* contextElement) | 48 SVGAnimatedTypeAnimator(AnimatedPropertyType type, SVGAnimationElement* anim
ationElement, SVGElement* contextElement) |
| 47 : m_type(type) | 49 : m_type(type) |
| 48 , m_animationElement(animationElement) | 50 , m_animationElement(animationElement) |
| 49 , m_contextElement(contextElement) | 51 , m_contextElement(contextElement) |
| 50 { | 52 { |
| 51 } | 53 } |
| 52 | 54 |
| 53 AnimatedPropertyType m_type; | 55 AnimatedPropertyType m_type; |
| 54 SVGAnimationElement* m_animationElement; | 56 SVGAnimationElement* m_animationElement; |
| 55 SVGElement* m_contextElement; | 57 SVGElement* m_contextElement; |
| 56 }; | 58 }; |
| 57 | 59 |
| 58 } // namespace WebCore | 60 } // namespace WebCore |
| 59 | 61 |
| 60 #endif // ENABLE(SVG) | 62 #endif // ENABLE(SVG) |
| 61 #endif // SVGAnimatedTypeAnimator_h | 63 #endif // SVGAnimatedTypeAnimator_h |
| OLD | NEW |