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 CSSBorderImageLengthBoxInterpolationType_h | 5 #ifndef CSSBorderImageLengthBoxInterpolationType_h |
6 #define CSSBorderImageLengthBoxInterpolationType_h | 6 #define CSSBorderImageLengthBoxInterpolationType_h |
7 | 7 |
8 #include "core/animation/CSSInterpolationType.h" | 8 #include "core/animation/CSSInterpolationType.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 class CSSBorderImageLengthBoxInterpolationType : public CSSInterpolationType { | 12 class CSSBorderImageLengthBoxInterpolationType : public CSSInterpolationType { |
13 public: | 13 public: |
14 CSSBorderImageLengthBoxInterpolationType(PropertyHandle property) | 14 CSSBorderImageLengthBoxInterpolationType(PropertyHandle property) |
15 : CSSInterpolationType(property) {} | 15 : CSSInterpolationType(property) {} |
16 | 16 |
17 InterpolationValue maybeConvertUnderlyingValue( | 17 InterpolationValue maybeConvertUnderlyingValue( |
18 const InterpolationEnvironment&) const final; | 18 const InterpolationEnvironment&) const final; |
19 PairwiseInterpolationValue maybeMergeSingles( | 19 PairwiseInterpolationValue maybeMergeSingles( |
20 InterpolationValue&& start, | 20 InterpolationValue&& start, |
21 InterpolationValue&& end) const final; | 21 InterpolationValue&& end) const final; |
22 void composite(UnderlyingValueOwner&, | 22 void composite(UnderlyingValueOwner&, |
23 double underlyingFraction, | 23 double underlyingFraction, |
24 const InterpolationValue&, | 24 const InterpolationValue&, |
25 double interpolationFraction) const final; | 25 double interpolationFraction) const final; |
26 void apply(const InterpolableValue&, | 26 void applyStandardPropertyValue(const InterpolableValue&, |
27 const NonInterpolableValue*, | 27 const NonInterpolableValue*, |
28 InterpolationEnvironment&) const final; | 28 StyleResolverState&) const final; |
29 | 29 |
30 private: | 30 private: |
31 InterpolationValue maybeConvertNeutral(const InterpolationValue& underlying, | 31 InterpolationValue maybeConvertNeutral(const InterpolationValue& underlying, |
32 ConversionCheckers&) const final; | 32 ConversionCheckers&) const final; |
33 InterpolationValue maybeConvertInitial(const StyleResolverState&, | 33 InterpolationValue maybeConvertInitial(const StyleResolverState&, |
34 ConversionCheckers&) const final; | 34 ConversionCheckers&) const final; |
35 InterpolationValue maybeConvertInherit(const StyleResolverState&, | 35 InterpolationValue maybeConvertInherit(const StyleResolverState&, |
36 ConversionCheckers&) const final; | 36 ConversionCheckers&) const final; |
37 InterpolationValue maybeConvertValue(const CSSValue&, | 37 InterpolationValue maybeConvertValue(const CSSValue&, |
38 const StyleResolverState&, | 38 const StyleResolverState&, |
39 ConversionCheckers&) const final; | 39 ConversionCheckers&) const final; |
40 }; | 40 }; |
41 | 41 |
42 } // namespace blink | 42 } // namespace blink |
43 | 43 |
44 #endif // CSSBorderImageLengthBoxInterpolationType_h | 44 #endif // CSSBorderImageLengthBoxInterpolationType_h |
OLD | NEW |