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) 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) 2008 Cameron McCormack <cam@mcc.id.au> | 6 * Copyright (C) 2008 Cameron McCormack <cam@mcc.id.au> |
7 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 7 * Copyright (C) Research In Motion Limited 2011. 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 void beginElementAt(float offset); | 73 void beginElementAt(float offset); |
74 void endElement(); | 74 void endElement(); |
75 void endElementAt(float offset); | 75 void endElementAt(float offset); |
76 | 76 |
77 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(begin, beginEvent); | 77 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(begin, beginEvent); |
78 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(end, endEvent); | 78 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(end, endEvent); |
79 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(repeat, repeatEvent); | 79 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(repeat, repeatEvent); |
80 | 80 |
81 static bool isTargetAttributeCSSProperty(SVGElement*, const QualifiedName&); | 81 static bool isTargetAttributeCSSProperty(SVGElement*, const QualifiedName&); |
82 | 82 |
83 virtual bool isAdditive() const; | 83 virtual bool isAdditive(); |
84 bool isAccumulated() const; | 84 bool isAccumulated() const; |
85 AnimationMode animationMode() const { return m_animationMode; } | 85 AnimationMode animationMode() const { return m_animationMode; } |
86 CalcMode calcMode() const { return m_calcMode; } | 86 CalcMode calcMode() const { return m_calcMode; } |
87 | 87 |
88 enum ShouldApplyAnimation { | 88 enum ShouldApplyAnimation { |
89 DontApplyAnimation, | 89 DontApplyAnimation, |
90 ApplyCSSAnimation, | 90 ApplyCSSAnimation, |
91 ApplyXMLAnimation | 91 ApplyXMLAnimation |
92 }; | 92 }; |
93 | 93 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 157 |
158 // from SVGSMILElement | 158 // from SVGSMILElement |
159 virtual void startedActiveInterval() OVERRIDE; | 159 virtual void startedActiveInterval() OVERRIDE; |
160 virtual void updateAnimation(float percent, unsigned repeat, SVGSMILElement*
resultElement) OVERRIDE; | 160 virtual void updateAnimation(float percent, unsigned repeat, SVGSMILElement*
resultElement) OVERRIDE; |
161 | 161 |
162 AnimatedPropertyValueType m_fromPropertyValueType; | 162 AnimatedPropertyValueType m_fromPropertyValueType; |
163 AnimatedPropertyValueType m_toPropertyValueType; | 163 AnimatedPropertyValueType m_toPropertyValueType; |
164 | 164 |
165 virtual void setTargetElement(SVGElement*) OVERRIDE; | 165 virtual void setTargetElement(SVGElement*) OVERRIDE; |
166 virtual void setAttributeName(const QualifiedName&) OVERRIDE; | 166 virtual void setAttributeName(const QualifiedName&) OVERRIDE; |
167 AnimatedPropertyType determineAnimatedPropertyType() const; | |
168 | 167 |
169 bool hasInvalidCSSAttributeType() const { return m_hasInvalidCSSAttributeTyp
e; } | 168 bool hasInvalidCSSAttributeType() const { return m_hasInvalidCSSAttributeTyp
e; } |
170 | 169 |
171 virtual void updateAnimationMode(); | 170 virtual void updateAnimationMode(); |
172 void setAnimationMode(AnimationMode animationMode) { m_animationMode = anima
tionMode; } | 171 void setAnimationMode(AnimationMode animationMode) { m_animationMode = anima
tionMode; } |
173 void setCalcMode(CalcMode calcMode) { m_calcMode = calcMode; } | 172 void setCalcMode(CalcMode calcMode) { m_calcMode = calcMode; } |
174 | 173 |
175 private: | 174 private: |
176 virtual void animationAttributeChanged() OVERRIDE; | 175 virtual void animationAttributeChanged() OVERRIDE; |
177 void setAttributeType(const AtomicString&); | 176 void setAttributeType(const AtomicString&); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 String m_lastValuesAnimationFrom; | 208 String m_lastValuesAnimationFrom; |
210 String m_lastValuesAnimationTo; | 209 String m_lastValuesAnimationTo; |
211 bool m_hasInvalidCSSAttributeType; | 210 bool m_hasInvalidCSSAttributeType; |
212 CalcMode m_calcMode; | 211 CalcMode m_calcMode; |
213 AnimationMode m_animationMode; | 212 AnimationMode m_animationMode; |
214 }; | 213 }; |
215 | 214 |
216 } // namespace WebCore | 215 } // namespace WebCore |
217 | 216 |
218 #endif // SVGAnimationElement_h | 217 #endif // SVGAnimationElement_h |
OLD | NEW |