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

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: Change UpdatedAnimationStyle to class for consistency 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.cpp
diff --git a/Source/core/animation/InterpolationEffect.cpp b/Source/core/animation/InterpolationEffect.cpp
index fa62c0bca5204f67d14d1613f9b7a1ca262a034d..1c85402668f528919eed268e26b1d937baf0f401 100644
--- a/Source/core/animation/InterpolationEffect.cpp
+++ b/Source/core/animation/InterpolationEffect.cpp
@@ -75,6 +75,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