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

Unified Diff: Source/core/animation/StyleInterpolation.h

Issue 863863004: Implemented additive animations for length (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed AnimationStackTest Created 5 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: Source/core/animation/StyleInterpolation.h
diff --git a/Source/core/animation/StyleInterpolation.h b/Source/core/animation/StyleInterpolation.h
index 8f390627d0874d682a2d24450b2834c80e10e22f..5ce261e86e3b81f804279a49e4041fe6286e970c 100644
--- a/Source/core/animation/StyleInterpolation.h
+++ b/Source/core/animation/StyleInterpolation.h
@@ -34,6 +34,9 @@ public:
// (3) a custom value that is inserted directly into the StyleResolverState.
virtual void apply(StyleResolverState&) const = 0;
+ // FIXME: Make abstract
+ virtual void apply(StyleResolverState& state, const InterpolableValue&) const { apply(state); }
+
virtual bool isStyleInterpolation() const override final { return true; }
CSSPropertyID id() const { return m_id; }
@@ -51,6 +54,12 @@ protected:
, m_id(id)
{
}
+
+ StyleInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOwnPtrWillBeRawPtr<InterpolableValue> end, CSSPropertyID id, AnimationEffect::CompositeOperation compositeStart, AnimationEffect::CompositeOperation compositeEnd)
+ : Interpolation(start, end, compositeStart, compositeEnd)
+ , m_id(id)
+ {
+ }
};
DEFINE_TYPE_CASTS(StyleInterpolation, Interpolation, value, value->isStyleInterpolation(), value.isStyleInterpolation());

Powered by Google App Engine
This is Rietveld 408576698