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

Unified Diff: third_party/WebKit/Source/core/animation/SVGLengthListInterpolationType.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/SVGLengthListInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/SVGLengthListInterpolationType.cpp b/third_party/WebKit/Source/core/animation/SVGLengthListInterpolationType.cpp
index eff81367d871fac4d99e2ee04a991363f674354c..65a3228fa39ff46a48ddbe1f3fda18240d67ee83 100644
--- a/third_party/WebKit/Source/core/animation/SVGLengthListInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/SVGLengthListInterpolationType.cpp
@@ -4,11 +4,11 @@
#include "core/animation/SVGLengthListInterpolationType.h"
-#include "core/animation/InterpolationEnvironment.h"
+#include <memory>
+#include "core/animation/SVGInterpolationEnvironment.h"
#include "core/animation/SVGLengthInterpolationType.h"
#include "core/animation/UnderlyingLengthChecker.h"
#include "core/svg/SVGLengthList.h"
-#include <memory>
namespace blink {
@@ -85,7 +85,7 @@ void SVGLengthListInterpolationType::Apply(
const InterpolableValue& interpolable_value,
const NonInterpolableValue* non_interpolable_value,
InterpolationEnvironment& environment) const {
- SVGElement& element = environment.SvgElement();
+ SVGElement& element = ToSVGInterpolationEnvironment(environment).SvgElement();
SVGLengthContext length_context(&element);
SVGLengthList* result = SVGLengthList::Create(unit_mode_);

Powered by Google App Engine
This is Rietveld 408576698