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

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

Issue 1885353004: Add ComputedStyle constructor and getter to InterpolationEnvironment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_transformInterpolationType
Patch Set: Rebased Created 4 years, 4 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/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
« no previous file with comments | « third_party/WebKit/Source/core/animation/InterpolationEnvironment.h ('k') | third_party/WebKit/Source/core/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698