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

Unified Diff: third_party/WebKit/Source/core/animation/InterpolableValue.h

Issue 1680803003: Add additive animation support for CSS property background-position (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove redundant braces Created 4 years, 10 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/InterpolableValue.h
diff --git a/third_party/WebKit/Source/core/animation/InterpolableValue.h b/third_party/WebKit/Source/core/animation/InterpolableValue.h
index 3eff2a422825af1c0a977f44ea386945c2fa876f..a3d30a8d37f33d384248d545ba907d98540fcdfb 100644
--- a/third_party/WebKit/Source/core/animation/InterpolableValue.h
+++ b/third_party/WebKit/Source/core/animation/InterpolableValue.h
@@ -61,6 +61,7 @@ public:
PassOwnPtr<InterpolableValue> cloneAndZero() const final { return create(0); }
void scale(double scale) final;
void scaleAndAdd(double scale, const InterpolableValue& other) final;
+ void set(double value) { m_value = value; }
private:
void interpolate(const InterpolableValue& to, const double progress, InterpolableValue& result) const final;

Powered by Google App Engine
This is Rietveld 408576698