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

Unified Diff: Source/core/animation/ConstantStyleInterpolation.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/ConstantStyleInterpolation.h
diff --git a/Source/core/animation/ConstantStyleInterpolation.h b/Source/core/animation/ConstantStyleInterpolation.h
index 2c72f24add61713da5607010c8dddb65d32f0326..f3c7ab57e090f6e0b5db49d207f21cdd578022dc 100644
--- a/Source/core/animation/ConstantStyleInterpolation.h
+++ b/Source/core/animation/ConstantStyleInterpolation.h
@@ -17,6 +17,11 @@ public:
return adoptRefWillBeNoop(new ConstantStyleInterpolation(value, id));
}
+ static PassRefPtrWillBeRawPtr<ConstantStyleInterpolation> create(CSSValue* value, CSSPropertyID id, AnimationEffect::CompositeOperation compositeStart, AnimationEffect::CompositeOperation compositeEnd)
+ {
+ return adoptRefWillBeNoop(new ConstantStyleInterpolation(value, id, compositeStart, compositeEnd));
+ }
+
virtual void apply(StyleResolverState& state) const override
{
StyleBuilder::applyProperty(m_id, state, m_value.get());
@@ -34,6 +39,11 @@ private:
, m_value(value)
{ }
+ ConstantStyleInterpolation(CSSValue* value, CSSPropertyID id, AnimationEffect::CompositeOperation compositeStart, AnimationEffect::CompositeOperation compositeEnd)
+ : StyleInterpolation(InterpolableList::create(0), InterpolableList::create(0), id, compositeStart, compositeEnd)
+ , m_value(value)
+ { }
+
RefPtrWillBeMember<CSSValue> m_value;
};

Powered by Google App Engine
This is Rietveld 408576698