| 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 #ifndef ShadowStyleInterpolation_h | 5 #ifndef ShadowStyleInterpolation_h |
| 6 #define ShadowStyleInterpolation_h | 6 #define ShadowStyleInterpolation_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/animation/StyleInterpolation.h" | 9 #include "core/animation/StyleInterpolation.h" |
| 10 #include "core/css/CSSShadowValue.h" | 10 #include "core/css/CSSShadowValue.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 static PassOwnPtrWillBeRawPtr<InterpolableValue> shadowToInterpolableValue(c
onst CSSValue& value, NonInterpolableType& type) | 33 static PassOwnPtrWillBeRawPtr<InterpolableValue> shadowToInterpolableValue(c
onst CSSValue& value, NonInterpolableType& type) |
| 34 { | 34 { |
| 35 return toInterpolableValue(value, type); | 35 return toInterpolableValue(value, type); |
| 36 } | 36 } |
| 37 static CSSValue interpolableValueToShadow(const InterpolableValue& value, No
nInterpolableType type, InterpolationRange range = RangeAll) | 37 static CSSValue interpolableValueToShadow(const InterpolableValue& value, No
nInterpolableType type, InterpolationRange range = RangeAll) |
| 38 { | 38 { |
| 39 return fromInterpolableValue(value, type, range); | 39 return fromInterpolableValue(value, type, range); |
| 40 } | 40 } |
| 41 | 41 |
| 42 static PassOwnPtrWillBeRawPtr<InterpolableValue> lengthToInterpolableValue(N
ullableCSSValue); | 42 static PassOwnPtrWillBeRawPtr<InterpolableValue> lengthToInterpolableValue(c
onst NullableCSSValue&); |
| 43 | 43 |
| 44 friend class AnimationShadowStyleInterpolationTest; | 44 friend class AnimationShadowStyleInterpolationTest; |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 } // namespace blink | 47 } // namespace blink |
| 48 | 48 |
| 49 #endif // ShadowStyleInterpolation_h | 49 #endif // ShadowStyleInterpolation_h |
| OLD | NEW |