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

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

Issue 26292004: Web Animations CSS: Support animation of stroke-dasharray property (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments Created 7 years, 2 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/AnimatableRepeatable.h
diff --git a/Source/core/animation/AnimatableRepeatable.h b/Source/core/animation/AnimatableRepeatable.h
index f7b6f05435431df006ed400302fd089a04e68258..c0418073d2dc5cb9d848563e5c8217478124d83d 100644
--- a/Source/core/animation/AnimatableRepeatable.h
+++ b/Source/core/animation/AnimatableRepeatable.h
@@ -50,20 +50,26 @@ public:
const Vector<RefPtr<AnimatableValue> >& values() const { return m_values; }
-private:
+protected:
+ AnimatableRepeatable()
+ {
+ }
AnimatableRepeatable(Vector<RefPtr<AnimatableValue> >& values)
{
ASSERT(!values.isEmpty());
m_values.swap(values);
}
+ static bool interpolateLists(const Vector<RefPtr<AnimatableValue> >& fromValues, const Vector<RefPtr<AnimatableValue> >& toValues, double fraction, Vector<RefPtr<AnimatableValue> >& interpolatedValues);
+
+ Vector<RefPtr<AnimatableValue> > m_values;
+
+private:
virtual PassRefPtr<AnimatableValue> interpolateTo(const AnimatableValue*, double fraction) const OVERRIDE;
virtual PassRefPtr<AnimatableValue> addWith(const AnimatableValue*) const OVERRIDE;
virtual AnimatableType type() const OVERRIDE { return TypeRepeatable; }
virtual bool equalTo(const AnimatableValue*) const OVERRIDE;
-
- Vector<RefPtr<AnimatableValue> > m_values;
};
inline const AnimatableRepeatable* toAnimatableRepeatable(const AnimatableValue* value)

Powered by Google App Engine
This is Rietveld 408576698