OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef SizeInterpolationFunctions_h |
| 6 #define SizeInterpolationFunctions_h |
| 7 |
| 8 #include "core/animation/InterpolationValue.h" |
| 9 #include "core/animation/PairwiseInterpolationValue.h" |
| 10 #include "core/style/FillLayer.h" |
| 11 #include <memory> |
| 12 |
| 13 namespace blink { |
| 14 |
| 15 class CSSToLengthConversionData; |
| 16 class CSSValue; |
| 17 |
| 18 class SizeInterpolationFunctions { |
| 19 STATIC_ONLY(SizeInterpolationFunctions); |
| 20 public: |
| 21 static InterpolationValue convertFillSizeSide(const FillSize&, float zoom, b
ool convertWidth); |
| 22 static InterpolationValue maybeConvertCSSSizeSide(const CSSValue&, bool conv
ertWidth); |
| 23 static PairwiseInterpolationValue maybeMergeSingles(InterpolationValue&& sta
rt, InterpolationValue&& end); |
| 24 static InterpolationValue createNeutralValue(const NonInterpolableValue*); |
| 25 static bool nonInterpolableValuesAreCompatible(const NonInterpolableValue*,
const NonInterpolableValue*); |
| 26 static void composite(std::unique_ptr<InterpolableValue>&, RefPtr<NonInterpo
lableValue>&, double underlyingFraction, const InterpolableValue&, const NonInte
rpolableValue*); |
| 27 static FillSize createFillSize(const InterpolableValue& interpolableValueA,
const NonInterpolableValue* nonInterpolableValueA, const InterpolableValue& inte
rpolableValueB, const NonInterpolableValue* nonInterpolableValueB, const CSSToLe
ngthConversionData&); |
| 28 }; |
| 29 |
| 30 } // namespace blink |
| 31 |
| 32 #endif // SizeInterpolationFunctions_h |
OLD | NEW |