Chromium Code Reviews| 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 #include "core/animation/DeferredLegacyStyleInterpolation.h" | |
| 9 #include "core/animation/StyleInterpolation.h" | |
|
Timothy Loh
2015/02/11 04:09:00
unused includes?
shend
2015/02/12 01:01:42
Done.
| |
| 10 | |
| 8 namespace blink { | 11 namespace blink { |
| 9 | 12 |
| 10 void InterpolationEffect::getActiveInterpolations(double fraction, double iterat ionDuration, OwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolatio n>>>& result) const | 13 void InterpolationEffect::getActiveInterpolations(double fraction, double iterat ionDuration, OwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolatio n>>>& result) const |
| 11 { | 14 { |
| 12 if (!result) | 15 if (!result) |
| 13 result = adoptPtrWillBeNoop(new WillBeHeapVector<RefPtrWillBeMember<Inte rpolation> >()); | 16 result = adoptPtrWillBeNoop(new WillBeHeapVector<RefPtrWillBeMember<Inte rpolation> >()); |
| 14 | 17 |
| 15 size_t existingSize = result->size(); | 18 size_t existingSize = result->size(); |
| 16 size_t resultIndex = 0; | 19 size_t resultIndex = 0; |
| 17 | 20 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 79 } | 82 } |
| 80 | 83 |
| 81 void InterpolationEffect::trace(Visitor* visitor) | 84 void InterpolationEffect::trace(Visitor* visitor) |
| 82 { | 85 { |
| 83 #if ENABLE_OILPAN | 86 #if ENABLE_OILPAN |
| 84 visitor->trace(m_interpolations); | 87 visitor->trace(m_interpolations); |
| 85 #endif | 88 #endif |
| 86 } | 89 } |
| 87 | 90 |
| 88 } | 91 } |
| OLD | NEW |