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

Unified Diff: third_party/WebKit/Source/core/animation/SVGLengthInterpolationType.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/SVGLengthInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/SVGLengthInterpolationType.cpp b/third_party/WebKit/Source/core/animation/SVGLengthInterpolationType.cpp
index f1224ebba8ab41949644f0a9d4e0ac05b37f5f36..cffb3a6d176b56a63979c2380eda150fcbeeac77 100644
--- a/third_party/WebKit/Source/core/animation/SVGLengthInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/SVGLengthInterpolationType.cpp
@@ -4,13 +4,13 @@
#include "core/animation/SVGLengthInterpolationType.h"
-#include "core/animation/InterpolationEnvironment.h"
+#include <memory>
+#include "core/animation/SVGInterpolationEnvironment.h"
#include "core/animation/StringKeyframe.h"
#include "core/css/CSSHelper.h"
#include "core/svg/SVGElement.h"
#include "core/svg/SVGLength.h"
#include "core/svg/SVGLengthContext.h"
-#include <memory>
namespace blink {
@@ -115,7 +115,7 @@ void SVGLengthInterpolationType::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);
element.SetWebAnimatedAttribute(
Attribute(),

Powered by Google App Engine
This is Rietveld 408576698