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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 if (isAccumulated() && repeatCount) | 155 if (isAccumulated() && repeatCount) |
156 number += toAtEndOfDurationNumber * repeatCount; | 156 number += toAtEndOfDurationNumber * repeatCount; |
157 | 157 |
158 if (isAdditive() && animationMode() != ToAnimation) | 158 if (isAdditive() && animationMode() != ToAnimation) |
159 animatedNumber += number; | 159 animatedNumber += number; |
160 else | 160 else |
161 animatedNumber = number; | 161 animatedNumber = number; |
162 } | 162 } |
163 | 163 |
164 protected: | 164 protected: |
165 SVGAnimationElement(const QualifiedName&, Document*); | 165 SVGAnimationElement(const QualifiedName&, Document&); |
166 | 166 |
167 void computeCSSPropertyValue(SVGElement*, CSSPropertyID, String& value); | 167 void computeCSSPropertyValue(SVGElement*, CSSPropertyID, String& value); |
168 virtual void determinePropertyValueTypes(const String& from, const String& t
o); | 168 virtual void determinePropertyValueTypes(const String& from, const String& t
o); |
169 | 169 |
170 bool isSupportedAttribute(const QualifiedName&); | 170 bool isSupportedAttribute(const QualifiedName&); |
171 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 171 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
172 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 172 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
173 | 173 |
174 enum AttributeType { | 174 enum AttributeType { |
175 AttributeTypeCSS, | 175 AttributeTypeCSS, |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 String m_lastValuesAnimationFrom; | 246 String m_lastValuesAnimationFrom; |
247 String m_lastValuesAnimationTo; | 247 String m_lastValuesAnimationTo; |
248 bool m_hasInvalidCSSAttributeType; | 248 bool m_hasInvalidCSSAttributeType; |
249 CalcMode m_calcMode; | 249 CalcMode m_calcMode; |
250 AnimationMode m_animationMode; | 250 AnimationMode m_animationMode; |
251 }; | 251 }; |
252 | 252 |
253 } // namespace WebCore | 253 } // namespace WebCore |
254 | 254 |
255 #endif // SVGAnimationElement_h | 255 #endif // SVGAnimationElement_h |
OLD | NEW |