| 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/ShadowInterpolationFunctions.h" | 5 #include "core/animation/ShadowInterpolationFunctions.h" |
| 6 | 6 |
| 7 #include <memory> |
| 7 #include "core/animation/CSSColorInterpolationType.h" | 8 #include "core/animation/CSSColorInterpolationType.h" |
| 8 #include "core/animation/InterpolationValue.h" | 9 #include "core/animation/InterpolationValue.h" |
| 9 #include "core/animation/LengthInterpolationFunctions.h" | 10 #include "core/animation/LengthInterpolationFunctions.h" |
| 10 #include "core/animation/NonInterpolableValue.h" | 11 #include "core/animation/NonInterpolableValue.h" |
| 11 #include "core/css/CSSIdentifierValue.h" | 12 #include "core/css/CSSIdentifierValue.h" |
| 12 #include "core/css/CSSShadowValue.h" | 13 #include "core/css/CSSShadowValue.h" |
| 13 #include "core/css/resolver/StyleResolverState.h" | 14 #include "core/css/resolver/StyleResolverState.h" |
| 14 #include "core/style/ShadowData.h" | 15 #include "core/style/ShadowData.h" |
| 15 #include "platform/geometry/FloatPoint.h" | 16 #include "platform/geometry/FloatPoint.h" |
| 16 #include <memory> | |
| 17 | 17 |
| 18 namespace blink { | 18 namespace blink { |
| 19 | 19 |
| 20 enum ShadowComponentIndex : unsigned { | 20 enum ShadowComponentIndex : unsigned { |
| 21 kShadowX, | 21 kShadowX, |
| 22 kShadowY, | 22 kShadowY, |
| 23 kShadowBlur, | 23 kShadowBlur, |
| 24 kShadowSpread, | 24 kShadowSpread, |
| 25 kShadowColor, | 25 kShadowColor, |
| 26 kShadowComponentIndexCount, | 26 kShadowComponentIndexCount, |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 DCHECK(shadow_x.IsFixed() && shadow_y.IsFixed() && shadow_blur.IsFixed() && | 190 DCHECK(shadow_x.IsFixed() && shadow_y.IsFixed() && shadow_blur.IsFixed() && |
| 191 shadow_spread.IsFixed()); | 191 shadow_spread.IsFixed()); |
| 192 return ShadowData(FloatPoint(shadow_x.Value(), shadow_y.Value()), | 192 return ShadowData(FloatPoint(shadow_x.Value(), shadow_y.Value()), |
| 193 shadow_blur.Value(), shadow_spread.Value(), | 193 shadow_blur.Value(), shadow_spread.Value(), |
| 194 shadow_non_interpolable_value.Style(), | 194 shadow_non_interpolable_value.Style(), |
| 195 CSSColorInterpolationType::ResolveInterpolableColor( | 195 CSSColorInterpolationType::ResolveInterpolableColor( |
| 196 *interpolable_list.Get(kShadowColor), state)); | 196 *interpolable_list.Get(kShadowColor), state)); |
| 197 } | 197 } |
| 198 | 198 |
| 199 } // namespace blink | 199 } // namespace blink |
| OLD | NEW |