Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(995)

Side by Side Diff: Source/core/svg/SVGAnimationElement.h

Issue 180113007: [SVG] refactor determineAnimatedPropertyType logic. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGAnimateElement.cpp ('k') | Source/core/svg/SVGAnimationElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 // from SVGSMILElement 190 // from SVGSMILElement
191 virtual void startedActiveInterval() OVERRIDE; 191 virtual void startedActiveInterval() OVERRIDE;
192 virtual void updateAnimation(float percent, unsigned repeat, SVGSMILElement* resultElement) OVERRIDE; 192 virtual void updateAnimation(float percent, unsigned repeat, SVGSMILElement* resultElement) OVERRIDE;
193 193
194 AnimatedPropertyValueType m_fromPropertyValueType; 194 AnimatedPropertyValueType m_fromPropertyValueType;
195 AnimatedPropertyValueType m_toPropertyValueType; 195 AnimatedPropertyValueType m_toPropertyValueType;
196 196
197 virtual void setTargetElement(SVGElement*) OVERRIDE; 197 virtual void setTargetElement(SVGElement*) OVERRIDE;
198 virtual void setAttributeName(const QualifiedName&) OVERRIDE; 198 virtual void setAttributeName(const QualifiedName&) OVERRIDE;
199 AnimatedPropertyType determineAnimatedPropertyType() const;
200
199 bool hasInvalidCSSAttributeType() const { return m_hasInvalidCSSAttributeTyp e; } 201 bool hasInvalidCSSAttributeType() const { return m_hasInvalidCSSAttributeTyp e; }
200 202
201 virtual void updateAnimationMode(); 203 virtual void updateAnimationMode();
202 void setAnimationMode(AnimationMode animationMode) { m_animationMode = anima tionMode; } 204 void setAnimationMode(AnimationMode animationMode) { m_animationMode = anima tionMode; }
203 void setCalcMode(CalcMode calcMode) { m_calcMode = calcMode; } 205 void setCalcMode(CalcMode calcMode) { m_calcMode = calcMode; }
204 206
205 private: 207 private:
206 virtual void animationAttributeChanged() OVERRIDE; 208 virtual void animationAttributeChanged() OVERRIDE;
207 void setAttributeType(const AtomicString&); 209 void setAttributeType(const AtomicString&);
208 210
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 String m_lastValuesAnimationFrom; 244 String m_lastValuesAnimationFrom;
243 String m_lastValuesAnimationTo; 245 String m_lastValuesAnimationTo;
244 bool m_hasInvalidCSSAttributeType; 246 bool m_hasInvalidCSSAttributeType;
245 CalcMode m_calcMode; 247 CalcMode m_calcMode;
246 AnimationMode m_animationMode; 248 AnimationMode m_animationMode;
247 }; 249 };
248 250
249 } // namespace WebCore 251 } // namespace WebCore
250 252
251 #endif // SVGAnimationElement_h 253 #endif // SVGAnimationElement_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGAnimateElement.cpp ('k') | Source/core/svg/SVGAnimationElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698