| 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/CSSPaintInterpolationType.h" | 5 #include "core/animation/CSSPaintInterpolationType.h" |
| 6 | 6 |
| 7 #include <memory> |
| 7 #include "core/animation/CSSColorInterpolationType.h" | 8 #include "core/animation/CSSColorInterpolationType.h" |
| 8 #include "core/animation/PaintPropertyFunctions.h" | 9 #include "core/animation/PaintPropertyFunctions.h" |
| 9 #include "core/css/resolver/StyleResolverState.h" | 10 #include "core/css/resolver/StyleResolverState.h" |
| 10 #include "wtf/PtrUtil.h" | 11 #include "wtf/PtrUtil.h" |
| 11 #include <memory> | |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 InterpolationValue CSSPaintInterpolationType::maybeConvertNeutral( | 15 InterpolationValue CSSPaintInterpolationType::maybeConvertNeutral( |
| 16 const InterpolationValue&, | 16 const InterpolationValue&, |
| 17 ConversionCheckers&) const { | 17 ConversionCheckers&) const { |
| 18 return InterpolationValue( | 18 return InterpolationValue( |
| 19 CSSColorInterpolationType::createInterpolableColor(Color::transparent)); | 19 CSSColorInterpolationType::createInterpolableColor(Color::transparent)); |
| 20 } | 20 } |
| 21 | 21 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 const InterpolableValue& interpolableColor, | 104 const InterpolableValue& interpolableColor, |
| 105 const NonInterpolableValue*, | 105 const NonInterpolableValue*, |
| 106 StyleResolverState& state) const { | 106 StyleResolverState& state) const { |
| 107 PaintPropertyFunctions::setColor( | 107 PaintPropertyFunctions::setColor( |
| 108 cssProperty(), *state.style(), | 108 cssProperty(), *state.style(), |
| 109 CSSColorInterpolationType::resolveInterpolableColor(interpolableColor, | 109 CSSColorInterpolationType::resolveInterpolableColor(interpolableColor, |
| 110 state)); | 110 state)); |
| 111 } | 111 } |
| 112 | 112 |
| 113 } // namespace blink | 113 } // namespace blink |
| OLD | NEW |