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

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

Issue 112003003: [SVG] SVGLength{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaselined Created 7 years 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
Index: Source/core/svg/SVGAnimatorFactory.h
diff --git a/Source/core/svg/SVGAnimatorFactory.h b/Source/core/svg/SVGAnimatorFactory.h
index 5a04cda8156ae7de8262bd510243e54a76718e77..599527d12b47c0cd79fd76b54906095e23c1935f 100644
--- a/Source/core/svg/SVGAnimatorFactory.h
+++ b/Source/core/svg/SVGAnimatorFactory.h
@@ -63,10 +63,6 @@ public:
return adoptPtr(new SVGAnimatedIntegerAnimator(animationElement, contextElement));
case AnimatedIntegerOptionalInteger:
return adoptPtr(new SVGAnimatedIntegerOptionalIntegerAnimator(animationElement, contextElement));
- case AnimatedLength:
- return adoptPtr(new SVGAnimatedLengthAnimator(animationElement, contextElement));
- case AnimatedLengthList:
- return adoptPtr(new SVGAnimatedLengthListAnimator(animationElement, contextElement));
case AnimatedNumber:
return adoptPtr(new SVGAnimatedNumberAnimator(animationElement, contextElement));
case AnimatedNumberList:
@@ -85,8 +81,11 @@ public:
return adoptPtr(new SVGAnimatedStringAnimator(animationElement, contextElement));
case AnimatedTransformList:
return adoptPtr(new SVGAnimatedTransformListAnimator(animationElement, contextElement));
+ // Below properties are migrated to new property implementation.
+ case AnimatedLength:
+ case AnimatedLengthList:
case AnimatedNewProperty:
- return adoptPtr(new SVGAnimatedNewPropertyAnimator(animationElement, contextElement));
+ return adoptPtr(new SVGAnimatedNewPropertyAnimator(animationElement, contextElement, attributeType));
case AnimatedUnknown:
break;
}

Powered by Google App Engine
This is Rietveld 408576698