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

Unified Diff: third_party/WebKit/Source/core/animation/SVGTransformListInterpolationType.cpp

Issue 2811253003: Make InterpolationEnvironment virutal (Closed)
Patch Set: protected Created 3 years, 7 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: third_party/WebKit/Source/core/animation/SVGTransformListInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/SVGTransformListInterpolationType.cpp b/third_party/WebKit/Source/core/animation/SVGTransformListInterpolationType.cpp
index 086ba1017cf44b0a20df2d40e9d07738867c3072..c3a09d98ab0d3b79e7bc3b6fe1bb31b67a618227 100644
--- a/third_party/WebKit/Source/core/animation/SVGTransformListInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/SVGTransformListInterpolationType.cpp
@@ -6,8 +6,8 @@
#include <memory>
#include "core/animation/InterpolableValue.h"
-#include "core/animation/InterpolationEnvironment.h"
#include "core/animation/NonInterpolableValue.h"
+#include "core/animation/SVGInterpolationEnvironment.h"
#include "core/animation/StringKeyframe.h"
#include "core/svg/SVGTransform.h"
#include "core/svg/SVGTransformList.h"
@@ -252,8 +252,10 @@ InterpolationValue SVGTransformListInterpolationType::MaybeConvertSingle(
}
if (!keyframe.IsNeutral()) {
- SVGPropertyBase* svg_value = environment.SvgBaseValue().CloneForAnimation(
- ToSVGPropertySpecificKeyframe(keyframe).Value());
+ SVGPropertyBase* svg_value =
+ ToSVGInterpolationEnvironment(environment)
+ .SvgBaseValue()
+ .CloneForAnimation(ToSVGPropertySpecificKeyframe(keyframe).Value());
InterpolationValue value = MaybeConvertSVGValue(*svg_value);
if (!value)
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698