OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 LengthInterpolationFunctions_h | 5 #ifndef LengthInterpolationFunctions_h |
6 #define LengthInterpolationFunctions_h | 6 #define LengthInterpolationFunctions_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 "platform/Length.h" | 10 #include "platform/Length.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 static void composite(std::unique_ptr<InterpolableValue>&, | 32 static void composite(std::unique_ptr<InterpolableValue>&, |
33 RefPtr<NonInterpolableValue>&, | 33 RefPtr<NonInterpolableValue>&, |
34 double underlyingFraction, | 34 double underlyingFraction, |
35 const InterpolableValue&, | 35 const InterpolableValue&, |
36 const NonInterpolableValue*); | 36 const NonInterpolableValue*); |
37 static Length createLength(const InterpolableValue&, | 37 static Length createLength(const InterpolableValue&, |
38 const NonInterpolableValue*, | 38 const NonInterpolableValue*, |
39 const CSSToLengthConversionData&, | 39 const CSSToLengthConversionData&, |
40 ValueRange); | 40 ValueRange); |
41 | 41 |
| 42 // Unlike createLength() this preserves all specificed unit types via calc() |
| 43 // expressions. |
| 44 static const CSSValue* createCSSValue(const InterpolableValue&, |
| 45 const NonInterpolableValue*, |
| 46 ValueRange); |
| 47 |
42 static void subtractFromOneHundredPercent(InterpolationValue& result); | 48 static void subtractFromOneHundredPercent(InterpolationValue& result); |
43 }; | 49 }; |
44 | 50 |
45 } // namespace blink | 51 } // namespace blink |
46 | 52 |
47 #endif // LengthInterpolationFunctions_h | 53 #endif // LengthInterpolationFunctions_h |
OLD | NEW |