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

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

Issue 851693007: Prepare for responsive CSS animations. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase 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/InterpolationEffect.h
diff --git a/Source/core/animation/InterpolationEffect.h b/Source/core/animation/InterpolationEffect.h
index f6c4f0d1b73eaac65a0ed3d76fe1ca7c13fd3bdb..be2463bd676de98d1a4bcaf0b55811b28783e38e 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<typename T>
+ inline void forEachInterpolation(const T& callback)
+ {
+ for (auto& record : m_interpolations)
+ callback(*record->m_interpolation);
+ }
+
void trace(Visitor*);
private:

Powered by Google App Engine
This is Rietveld 408576698