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

Unified Diff: Source/core/svg/SVGAnimationElement.h

Issue 208523005: Remove unused animation code after SVG prop migration (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/svg/properties/SVGAnimatedProperty.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGAnimationElement.h
diff --git a/Source/core/svg/SVGAnimationElement.h b/Source/core/svg/SVGAnimationElement.h
index 27497789ff8481784928fd74d926fd8dfe340a21..a4a06e12f24c016cc41d94c5727bf95d9d963ad1 100644
--- a/Source/core/svg/SVGAnimationElement.h
+++ b/Source/core/svg/SVGAnimationElement.h
@@ -92,15 +92,6 @@ public:
AnimatedPropertyValueType fromPropertyValueType() const { return m_fromPropertyValueType; }
AnimatedPropertyValueType toPropertyValueType() const { return m_toPropertyValueType; }
- // FIXME: In C++11, remove this as we can use default template argument.
- template<typename AnimatedType>
- void adjustForInheritance(AnimatedType (*parseTypeFromString)(SVGAnimationElement*, const String&),
- AnimatedPropertyValueType valueType, AnimatedType& animatedType, SVGElement* contextElement)
- {
- ASSERT(parseTypeFromString);
- adjustForInheritance<AnimatedType, AnimatedType (*)(SVGAnimationElement*, const String&)>(parseTypeFromString, valueType, animatedType, contextElement);
- }
-
template<typename AnimatedType, typename ParseTypeFromStringType>
void adjustForInheritance(ParseTypeFromStringType parseTypeFromString, AnimatedPropertyValueType valueType, AnimatedType& animatedType, SVGElement* contextElement)
{
@@ -113,33 +104,6 @@ public:
}
template<typename AnimatedType>
- bool adjustFromToListValues(const AnimatedType& fromList, const AnimatedType& toList, AnimatedType& animatedList, float percentage, bool resizeAnimatedListIfNeeded = true)
- {
- // If no 'to' value is given, nothing to animate.
- unsigned toListSize = toList.size();
- if (!toListSize)
- return false;
-
- // If the 'from' value is given and it's length doesn't match the 'to' value list length, fallback to a discrete animation.
- unsigned fromListSize = fromList.size();
- if (fromListSize != toListSize && fromListSize) {
- if (percentage < 0.5) {
- if (animationMode() != ToAnimation)
- animatedList = AnimatedType(fromList);
- } else
- animatedList = AnimatedType(toList);
-
- return false;
- }
-
- ASSERT(!fromListSize || fromListSize == toListSize);
- if (resizeAnimatedListIfNeeded && animatedList.size() < toListSize)
- animatedList.resize(toListSize);
-
- return true;
- }
-
- template<typename AnimatedType>
void animateDiscreteType(float percentage, const AnimatedType& fromType, const AnimatedType& toType, AnimatedType& animatedType)
{
if ((animationMode() == FromToAnimation && percentage > 0.5) || animationMode() == ToAnimation || percentage == 1) {
« no previous file with comments | « no previous file | Source/core/svg/properties/SVGAnimatedProperty.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698