| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include "core/animation/InterpolationEffect.h" | 6 #include "core/animation/InterpolationEffect.h" |
| 7 | 7 |
| 8 namespace blink { | 8 namespace blink { |
| 9 | 9 |
| 10 void InterpolationEffect::getActiveInterpolations(double fraction, double iterat
ionDuration, OwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolatio
n>>>& result) const | 10 void InterpolationEffect::getActiveInterpolations(double fraction, double iterat
ionDuration, OwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolatio
n>>>& result) const |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 } | 68 } |
| 69 | 69 |
| 70 addInterpolation(interpolation.release(), | 70 addInterpolation(interpolation.release(), |
| 71 &keyframeA.easing(), regionStart, regionEnd, regionApplyFrom, re
gionApplyTo); | 71 &keyframeA.easing(), regionStart, regionEnd, regionApplyFrom, re
gionApplyTo); |
| 72 | 72 |
| 73 regionIndex++; | 73 regionIndex++; |
| 74 } | 74 } |
| 75 } | 75 } |
| 76 } | 76 } |
| 77 | 77 |
| 78 void InterpolationEffect::setDeferredInterpolationsOutdated() |
| 79 { |
| 80 for (auto& record : m_interpolations) { |
| 81 if (record->m_interpolation->isStyleInterpolation() && toStyleInterpolat
ion(record->m_interpolation.get())->isDeferredLegacyStyleInterpolation()) |
| 82 toDeferredLegacyStyleInterpolation(toStyleInterpolation(record->m_in
terpolation.get()))->setOutdated(); |
| 83 } |
| 84 } |
| 85 |
| 78 void InterpolationEffect::InterpolationRecord::trace(Visitor* visitor) | 86 void InterpolationEffect::InterpolationRecord::trace(Visitor* visitor) |
| 79 { | 87 { |
| 80 visitor->trace(m_interpolation); | 88 visitor->trace(m_interpolation); |
| 81 } | 89 } |
| 82 | 90 |
| 83 void InterpolationEffect::trace(Visitor* visitor) | 91 void InterpolationEffect::trace(Visitor* visitor) |
| 84 { | 92 { |
| 85 #if ENABLE_OILPAN | 93 #if ENABLE_OILPAN |
| 86 visitor->trace(m_interpolations); | 94 visitor->trace(m_interpolations); |
| 87 #endif | 95 #endif |
| 88 } | 96 } |
| 89 | 97 |
| 90 } | 98 } |
| OLD | NEW |