| 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 #ifndef ShadowInterpolationFunctions_h | 5 #ifndef ShadowInterpolationFunctions_h |
| 6 #define ShadowInterpolationFunctions_h | 6 #define ShadowInterpolationFunctions_h |
| 7 | 7 |
| 8 #include "core/animation/InterpolationValue.h" | 8 #include "core/animation/InterpolationValue.h" |
| 9 #include "core/animation/PairwiseInterpolationValue.h" | 9 #include "core/animation/PairwiseInterpolationValue.h" |
| 10 #include <memory> | |
| 11 | 10 |
| 12 namespace blink { | 11 namespace blink { |
| 13 | 12 |
| 14 class ShadowData; | 13 class ShadowData; |
| 15 class CSSValue; | 14 class CSSValue; |
| 16 class StyleResolverState; | 15 class StyleResolverState; |
| 17 | 16 |
| 18 class ShadowInterpolationFunctions { | 17 class ShadowInterpolationFunctions { |
| 19 public: | 18 public: |
| 20 static InterpolationValue convertShadowData(const ShadowData&, double zoom); | 19 static InterpolationValue convertShadowData(const ShadowData&, double zoom); |
| 21 static InterpolationValue maybeConvertCSSValue(const CSSValue&); | 20 static InterpolationValue maybeConvertCSSValue(const CSSValue&); |
| 22 static std::unique_ptr<InterpolableValue> createNeutralInterpolableValue(); | 21 static PassOwnPtr<InterpolableValue> createNeutralInterpolableValue(); |
| 23 static bool nonInterpolableValuesAreCompatible(const NonInterpolableValue*,
const NonInterpolableValue*); | 22 static bool nonInterpolableValuesAreCompatible(const NonInterpolableValue*,
const NonInterpolableValue*); |
| 24 static PairwiseInterpolationValue maybeMergeSingles(InterpolationValue&& sta
rt, InterpolationValue&& end); | 23 static PairwiseInterpolationValue maybeMergeSingles(InterpolationValue&& sta
rt, InterpolationValue&& end); |
| 25 static void composite(std::unique_ptr<InterpolableValue>&, RefPtr<NonInterpo
lableValue>&, double underlyingFraction, const InterpolableValue&, const NonInte
rpolableValue*); | 24 static void composite(OwnPtr<InterpolableValue>&, RefPtr<NonInterpolableValu
e>&, double underlyingFraction, const InterpolableValue&, const NonInterpolableV
alue*); |
| 26 static ShadowData createShadowData(const InterpolableValue&, const NonInterp
olableValue*, const StyleResolverState&); | 25 static ShadowData createShadowData(const InterpolableValue&, const NonInterp
olableValue*, const StyleResolverState&); |
| 27 }; | 26 }; |
| 28 | 27 |
| 29 } // namespace blink | 28 } // namespace blink |
| 30 | 29 |
| 31 #endif // ShadowInterpolationFunctions_h | 30 #endif // ShadowInterpolationFunctions_h |
| OLD | NEW |