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

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: Attempt to re-snapshot only if needed Created 5 years, 11 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 6c1f07bf6a56ce53bd0bedd7a1e32e4451cbf917..cdb470abd9cc0f6bf53102b42c3b32c0bdc6118c 100644
--- a/Source/core/animation/InterpolationEffect.h
+++ b/Source/core/animation/InterpolationEffect.h
@@ -5,7 +5,9 @@
#ifndef InterpolationEffect_h
#define InterpolationEffect_h
+#include "core/animation/DeferredLegacyStyleInterpolation.h"
#include "core/animation/Interpolation.h"
+#include "core/animation/StyleInterpolation.h"
#include "platform/animation/TimingFunction.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/RefCounted.h"
@@ -26,6 +28,15 @@ public:
m_interpolations.append(InterpolationRecord::create(interpolation, easing, start, end, applyFrom, applyTo));
}
+ void setDeferredInterpolationsOutdated(bool outdated)
+ {
+ for (auto &record : m_interpolations) {
Timothy Loh 2015/01/20 05:29:32 auto& :)
shend 2015/01/20 23:13:03 Done.
+ if (record->m_interpolation->isStyleInterpolation() && toStyleInterpolation(record->m_interpolation.get())->isDeferredLegacyStyleInterpolation()) {
+ toDeferredLegacyStyleInterpolation(toStyleInterpolation(record->m_interpolation.get()))->setOutdated(outdated);
+ }
+ }
+ }
+
void trace(Visitor*);
private:

Powered by Google App Engine
This is Rietveld 408576698