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/Interpolation.h" | 6 #include "core/animation/Interpolation.h" |
7 | 7 |
8 namespace blink { | 8 namespace blink { |
9 | 9 |
10 namespace { | 10 namespace { |
(...skipping 14 matching lines...) Expand all Loading... |
25 return false; | 25 return false; |
26 for (size_t i = 0; i < startList->length(); ++i) { | 26 for (size_t i = 0; i < startList->length(); ++i) { |
27 if (!typesMatch(startList->get(i), endList->get(i))) | 27 if (!typesMatch(startList->get(i), endList->get(i))) |
28 return false; | 28 return false; |
29 } | 29 } |
30 return true; | 30 return true; |
31 } | 31 } |
32 | 32 |
33 } | 33 } |
34 | 34 |
35 Interpolation::Interpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, Pa
ssOwnPtrWillBeRawPtr<InterpolableValue> end) | 35 Interpolation::Interpolation(InterpolableValue* start, InterpolableValue* end) |
36 : m_start(start) | 36 : m_start(start) |
37 , m_end(end) | 37 , m_end(end) |
38 , m_cachedFraction(0) | 38 , m_cachedFraction(0) |
39 , m_cachedIteration(0) | 39 , m_cachedIteration(0) |
40 , m_cachedValue(m_start->clone()) | 40 , m_cachedValue(m_start->clone()) |
41 { | 41 { |
42 RELEASE_ASSERT(typesMatch(m_start.get(), m_end.get())); | 42 RELEASE_ASSERT(typesMatch(m_start.get(), m_end.get())); |
43 } | 43 } |
44 | 44 |
45 Interpolation::~Interpolation() | 45 Interpolation::~Interpolation() |
(...skipping 10 matching lines...) Expand all Loading... |
56 } | 56 } |
57 | 57 |
58 DEFINE_TRACE(Interpolation) | 58 DEFINE_TRACE(Interpolation) |
59 { | 59 { |
60 visitor->trace(m_start); | 60 visitor->trace(m_start); |
61 visitor->trace(m_end); | 61 visitor->trace(m_end); |
62 visitor->trace(m_cachedValue); | 62 visitor->trace(m_cachedValue); |
63 } | 63 } |
64 | 64 |
65 } | 65 } |
OLD | NEW |