Chromium Code Reviews| Index: Source/core/animation/InterpolationEffect.h |
| diff --git a/Source/core/animation/InterpolationEffect.h b/Source/core/animation/InterpolationEffect.h |
| index f6c4f0d1b73eaac65a0ed3d76fe1ca7c13fd3bdb..d7e4abfc184abb787fd474d7867880a8475167a4 100644 |
| --- a/Source/core/animation/InterpolationEffect.h |
| +++ b/Source/core/animation/InterpolationEffect.h |
| @@ -30,6 +30,13 @@ public: |
| void addInterpolationsFromKeyframes(CSSPropertyID, Element*, Keyframe::PropertySpecificKeyframe& keyframeA, Keyframe::PropertySpecificKeyframe& keyframeB, double applyFrom, double applyTo); |
| + template<class Func> |
|
Timothy Loh
2015/02/11 04:09:00
I think this reads better as (and same for Keyfram
shend
2015/02/12 01:01:42
Done.
|
| + inline void forEachInterpolation(const Func& func) |
| + { |
| + for (auto& record : m_interpolations) |
| + func(*record->m_interpolation); |
| + } |
| + |
| void trace(Visitor*); |
| private: |