Chromium Code Reviews| 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: |