| 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/InterpolableValue.h" | 5 #include "core/animation/InterpolableValue.h" |
| 6 | 6 |
| 7 namespace blink { | 7 namespace blink { |
| 8 | 8 |
| 9 bool InterpolableNumber::equals(const InterpolableValue& other) const | 9 bool InterpolableNumber::equals(const InterpolableValue& other) const |
| 10 { | 10 { |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 { | 98 { |
| 99 const InterpolableAnimatableValue& toValue = toInterpolableAnimatableValue(t
o); | 99 const InterpolableAnimatableValue& toValue = toInterpolableAnimatableValue(t
o); |
| 100 InterpolableAnimatableValue& resultValue = toInterpolableAnimatableValue(res
ult); | 100 InterpolableAnimatableValue& resultValue = toInterpolableAnimatableValue(res
ult); |
| 101 if (progress == 0) | 101 if (progress == 0) |
| 102 resultValue.m_value = m_value; | 102 resultValue.m_value = m_value; |
| 103 if (progress == 1) | 103 if (progress == 1) |
| 104 resultValue.m_value = toValue.m_value; | 104 resultValue.m_value = toValue.m_value; |
| 105 resultValue.m_value = AnimatableValue::interpolate(m_value.get(), toValue.m_
value.get(), progress); | 105 resultValue.m_value = AnimatableValue::interpolate(m_value.get(), toValue.m_
value.get(), progress); |
| 106 } | 106 } |
| 107 | 107 |
| 108 } | 108 } // namespace blink |
| OLD | NEW |