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

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

Issue 2619173002: Remove most content from Interpolation (Closed)
Patch Set: Created 3 years, 11 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/InterpolationEffectTest.cpp
diff --git a/third_party/WebKit/Source/core/animation/InterpolationEffectTest.cpp b/third_party/WebKit/Source/core/animation/InterpolationEffectTest.cpp
index 5015f1ff4304338e8096a0cc5b59ef90f319b7d3..df2589377a9e912e3c76eaf8ddb2b420f4d2dc1e 100644
--- a/third_party/WebKit/Source/core/animation/InterpolationEffectTest.cpp
+++ b/third_party/WebKit/Source/core/animation/InterpolationEffectTest.cpp
@@ -4,6 +4,7 @@
#include "core/animation/InterpolationEffect.h"
+#include "core/animation/LegacyStyleInterpolation.h"
#include "testing/gtest/include/gtest/gtest.h"
#include <memory>
@@ -11,7 +12,7 @@ namespace blink {
namespace {
-class SampleInterpolation : public Interpolation {
+class SampleInterpolation : public LegacyStyleInterpolation {
public:
static PassRefPtr<Interpolation> create(
std::unique_ptr<InterpolableValue> start,
@@ -19,14 +20,12 @@ class SampleInterpolation : public Interpolation {
return adoptRef(new SampleInterpolation(std::move(start), std::move(end)));
}
- PropertyHandle getProperty() const override {
- return PropertyHandle(CSSPropertyBackgroundColor);
- }
-
private:
SampleInterpolation(std::unique_ptr<InterpolableValue> start,
std::unique_ptr<InterpolableValue> end)
- : Interpolation(std::move(start), std::move(end)) {}
+ : LegacyStyleInterpolation(std::move(start),
+ std::move(end),
+ CSSPropertyBackgroundColor) {}
};
const double duration = 1.0;

Powered by Google App Engine
This is Rietveld 408576698