Index: third_party/WebKit/Source/core/animation/InterpolationEnvironment.cpp |
diff --git a/third_party/WebKit/Source/core/animation/InterpolationEnvironment.cpp b/third_party/WebKit/Source/core/animation/InterpolationEnvironment.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..805e78dae770d46bc9d824589223447fd1b35990 |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/animation/InterpolationEnvironment.cpp |
@@ -0,0 +1,24 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "core/animation/InterpolationEnvironment.h" |
+ |
+#include "core/css/resolver/StyleResolverState.h" |
+ |
+namespace blink { |
+ |
+InterpolationEnvironment::InterpolationEnvironment(StyleResolverState& state) |
+ : m_state(&state) |
+ , m_style(state.style()) |
+ , m_svgElement(nullptr) |
+ , m_svgBaseValue(nullptr) |
+{ |
+} |
+ |
+ComputedStyle& InterpolationEnvironment::style() |
+{ |
+ return *state().style(); |
+} |
+ |
+} // namespace blink |