| OLD | NEW | 
|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/InvalidatableInterpolation.h" | 5 #include "core/animation/InvalidatableInterpolation.h" | 
| 6 | 6 | 
|  | 7 #include <memory> | 
| 7 #include "core/animation/InterpolationEnvironment.h" | 8 #include "core/animation/InterpolationEnvironment.h" | 
| 8 #include "core/animation/StringKeyframe.h" | 9 #include "core/animation/StringKeyframe.h" | 
| 9 #include "core/css/resolver/StyleResolverState.h" | 10 #include "core/css/resolver/StyleResolverState.h" | 
| 10 #include <memory> |  | 
| 11 | 11 | 
| 12 namespace blink { | 12 namespace blink { | 
| 13 | 13 | 
| 14 void InvalidatableInterpolation::interpolate(int, double fraction) { | 14 void InvalidatableInterpolation::interpolate(int, double fraction) { | 
| 15   if (fraction == m_currentFraction) | 15   if (fraction == m_currentFraction) | 
| 16     return; | 16     return; | 
| 17 | 17 | 
| 18   if (m_currentFraction == 0 || m_currentFraction == 1 || fraction == 0 || | 18   if (m_currentFraction == 0 || m_currentFraction == 1 || fraction == 0 || | 
| 19       fraction == 1) { | 19       fraction == 1) { | 
| 20     clearConversionCache(); | 20     clearConversionCache(); | 
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 275                                      currentInterpolation.m_currentFraction); | 275                                      currentInterpolation.m_currentFraction); | 
| 276   } | 276   } | 
| 277 | 277 | 
| 278   if (shouldApply && underlyingValueOwner) | 278   if (shouldApply && underlyingValueOwner) | 
| 279     underlyingValueOwner.type().apply( | 279     underlyingValueOwner.type().apply( | 
| 280         *underlyingValueOwner.value().interpolableValue, | 280         *underlyingValueOwner.value().interpolableValue, | 
| 281         underlyingValueOwner.value().nonInterpolableValue.get(), environment); | 281         underlyingValueOwner.value().nonInterpolableValue.get(), environment); | 
| 282 } | 282 } | 
| 283 | 283 | 
| 284 }  // namespace blink | 284 }  // namespace blink | 
| OLD | NEW | 
|---|