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

Unified Diff: Source/core/animation/StringKeyframe.cpp

Issue 1068973004: Web Animations: Support animation of SVG number attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 8 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
Index: Source/core/animation/StringKeyframe.cpp
diff --git a/Source/core/animation/StringKeyframe.cpp b/Source/core/animation/StringKeyframe.cpp
index 8853639df5123a36a2f3da7c3a2929da75e020ee..9c7226403b71446ea3aa4dbca02ea55a7119c526 100644
--- a/Source/core/animation/StringKeyframe.cpp
+++ b/Source/core/animation/StringKeyframe.cpp
@@ -21,6 +21,7 @@
#include "core/animation/LengthStyleInterpolation.h"
#include "core/animation/ListSVGInterpolation.h"
#include "core/animation/ListStyleInterpolation.h"
+#include "core/animation/NumberSVGInterpolation.h"
#include "core/animation/PointSVGInterpolation.h"
#include "core/animation/SVGStrokeDasharrayStyleInterpolation.h"
#include "core/animation/ShadowStyleInterpolation.h"
@@ -480,6 +481,11 @@ PassRefPtrWillBeRawPtr<Interpolation> createSVGInterpolation(SVGPropertyBase* fr
if (AngleSVGInterpolation::canCreateFrom(fromValue) && AngleSVGInterpolation::canCreateFrom(toValue))
return AngleSVGInterpolation::create(fromValue, toValue, attribute);
break;
+ case AnimatedNumber:
+ return NumberSVGInterpolation::create(fromValue, toValue, attribute);
+ case AnimatedNumberList:
+ interpolation = ListSVGInterpolation<NumberSVGInterpolation>::maybeCreate(fromValue, toValue, attribute);
+ break;
case AnimatedIntegerOptionalInteger:
return IntegerOptionalIntegerSVGInterpolation::create(fromValue, toValue, attribute);
case AnimatedPoints:

Powered by Google App Engine
This is Rietveld 408576698