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