| 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/CSSImageInterpolationType.h" | 5 #include "core/animation/CSSImageInterpolationType.h" |
| 6 | 6 |
| 7 #include "core/animation/ImagePropertyFunctions.h" | 7 #include "core/animation/ImagePropertyFunctions.h" |
| 8 #include "core/css/CSSCrossfadeValue.h" | 8 #include "core/css/CSSCrossfadeValue.h" |
| 9 #include "core/css/CSSPrimitiveValue.h" | 9 #include "core/css/CSSPrimitiveValue.h" |
| 10 #include "core/css/resolver/StyleResolverState.h" | 10 #include "core/css/resolver/StyleResolverState.h" |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 } | 228 } |
| 229 | 229 |
| 230 void CSSImageInterpolationType::composite( | 230 void CSSImageInterpolationType::composite( |
| 231 UnderlyingValueOwner& underlyingValueOwner, | 231 UnderlyingValueOwner& underlyingValueOwner, |
| 232 double underlyingFraction, | 232 double underlyingFraction, |
| 233 const InterpolationValue& value, | 233 const InterpolationValue& value, |
| 234 double interpolationFraction) const { | 234 double interpolationFraction) const { |
| 235 underlyingValueOwner.set(*this, value); | 235 underlyingValueOwner.set(*this, value); |
| 236 } | 236 } |
| 237 | 237 |
| 238 void CSSImageInterpolationType::apply( | 238 void CSSImageInterpolationType::applyStandardPropertyValue( |
| 239 const InterpolableValue& interpolableValue, | 239 const InterpolableValue& interpolableValue, |
| 240 const NonInterpolableValue* nonInterpolableValue, | 240 const NonInterpolableValue* nonInterpolableValue, |
| 241 InterpolationEnvironment& environment) const { | 241 StyleResolverState& state) const { |
| 242 ImagePropertyFunctions::setStyleImage( | 242 ImagePropertyFunctions::setStyleImage( |
| 243 cssProperty(), *environment.state().style(), | 243 cssProperty(), *state.style(), |
| 244 resolveStyleImage(cssProperty(), interpolableValue, nonInterpolableValue, | 244 resolveStyleImage(cssProperty(), interpolableValue, nonInterpolableValue, |
| 245 environment.state())); | 245 state)); |
| 246 } | 246 } |
| 247 | 247 |
| 248 } // namespace blink | 248 } // namespace blink |
| OLD | NEW |