| 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);
|
|
|