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

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

Issue 851693007: Prepare for responsive CSS animations. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address comments 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.cpp
diff --git a/Source/core/animation/InterpolationEffect.cpp b/Source/core/animation/InterpolationEffect.cpp
index fa62c0bca5204f67d14d1613f9b7a1ca262a034d..e74a8d1d92b1a7102c22d9a362820fc82fd66ebe 100644
--- a/Source/core/animation/InterpolationEffect.cpp
+++ b/Source/core/animation/InterpolationEffect.cpp
@@ -5,6 +5,9 @@
#include "config.h"
#include "core/animation/InterpolationEffect.h"
+#include "core/animation/DeferredLegacyStyleInterpolation.h"
+#include "core/animation/StyleInterpolation.h"
+
namespace blink {
void InterpolationEffect::getActiveInterpolations(double fraction, double iterationDuration, OwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>>& result) const
@@ -75,6 +78,14 @@ void InterpolationEffect::addInterpolationsFromKeyframes(CSSPropertyID property,
}
}
+void InterpolationEffect::setDeferredInterpolationsOutdated()
+{
+ for (auto& record : m_interpolations) {
+ if (record->m_interpolation->isStyleInterpolation() && toStyleInterpolation(record->m_interpolation.get())->isDeferredLegacyStyleInterpolation())
+ toDeferredLegacyStyleInterpolation(toStyleInterpolation(record->m_interpolation.get()))->setOutdated();
+ }
+}
+
void InterpolationEffect::InterpolationRecord::trace(Visitor* visitor)
{
visitor->trace(m_interpolation);

Powered by Google App Engine
This is Rietveld 408576698