| 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 "core/animation/SampledEffect.h" | 5 #include "core/animation/SampledEffect.h" |
| 6 | 6 |
| 7 #include "core/animation/InterpolationEnvironment.h" | |
| 8 #include "core/animation/InvalidatableInterpolation.h" | |
| 9 #include "core/animation/SVGInterpolation.h" | |
| 10 #include "core/svg/SVGElement.h" | |
| 11 | |
| 12 namespace blink { | 7 namespace blink { |
| 13 | 8 |
| 14 SampledEffect::SampledEffect(KeyframeEffect* effect) | 9 SampledEffect::SampledEffect(KeyframeEffect* effect) |
| 15 : m_effect(effect) | 10 : m_effect(effect) |
| 16 , m_animation(effect->animation()) | 11 , m_animation(effect->animation()) |
| 17 , m_sequenceNumber(effect->animation()->sequenceNumber()) | 12 , m_sequenceNumber(effect->animation()->sequenceNumber()) |
| 18 , m_priority(effect->priority()) | 13 , m_priority(effect->priority()) |
| 19 { | 14 { |
| 20 } | 15 } |
| 21 | 16 |
| 22 void SampledEffect::clear() | 17 void SampledEffect::clear() |
| 23 { | 18 { |
| 24 m_effect = nullptr; | 19 m_effect = nullptr; |
| 25 m_animation = nullptr; | 20 m_animation = nullptr; |
| 26 m_interpolations.clear(); | 21 m_interpolations.clear(); |
| 27 } | 22 } |
| 28 | 23 |
| 29 DEFINE_TRACE(SampledEffect) | 24 DEFINE_TRACE(SampledEffect) |
| 30 { | 25 { |
| 31 visitor->trace(m_effect); | 26 visitor->trace(m_effect); |
| 32 visitor->trace(m_animation); | 27 visitor->trace(m_animation); |
| 33 } | 28 } |
| 34 | 29 |
| 35 } // namespace blink | 30 } // namespace blink |
| OLD | NEW |