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 CSSOffsetRotateInterpolationType_h | 5 #ifndef CSSOffsetRotateInterpolationType_h |
6 #define CSSOffsetRotateInterpolationType_h | 6 #define CSSOffsetRotateInterpolationType_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 CSSOffsetRotateInterpolationType : public CSSInterpolationType { | 12 class CSSOffsetRotateInterpolationType : public CSSInterpolationType { |
13 public: | 13 public: |
14 CSSOffsetRotateInterpolationType(PropertyHandle property) | 14 CSSOffsetRotateInterpolationType(PropertyHandle property) |
15 : CSSInterpolationType(property) { | 15 : CSSInterpolationType(property) { |
16 DCHECK(CssProperty() == CSSPropertyOffsetRotate || | 16 DCHECK(CssProperty() == CSSPropertyOffsetRotate); |
17 CssProperty() == CSSPropertyOffsetRotation); | |
18 } | 17 } |
19 | 18 |
20 InterpolationValue MaybeConvertStandardPropertyUnderlyingValue( | 19 InterpolationValue MaybeConvertStandardPropertyUnderlyingValue( |
21 const ComputedStyle&) const final; | 20 const ComputedStyle&) const final; |
22 void Composite(UnderlyingValueOwner&, | 21 void Composite(UnderlyingValueOwner&, |
23 double underlying_fraction, | 22 double underlying_fraction, |
24 const InterpolationValue&, | 23 const InterpolationValue&, |
25 double interpolation_fraction) const final; | 24 double interpolation_fraction) const final; |
26 void ApplyStandardPropertyValue(const InterpolableValue&, | 25 void ApplyStandardPropertyValue(const InterpolableValue&, |
27 const NonInterpolableValue*, | 26 const NonInterpolableValue*, |
(...skipping 10 matching lines...) Expand all Loading... |
38 const StyleResolverState*, | 37 const StyleResolverState*, |
39 ConversionCheckers&) const final; | 38 ConversionCheckers&) const final; |
40 PairwiseInterpolationValue MaybeMergeSingles( | 39 PairwiseInterpolationValue MaybeMergeSingles( |
41 InterpolationValue&& start, | 40 InterpolationValue&& start, |
42 InterpolationValue&& end) const final; | 41 InterpolationValue&& end) const final; |
43 }; | 42 }; |
44 | 43 |
45 } // namespace blink | 44 } // namespace blink |
46 | 45 |
47 #endif // CSSOffsetRotateInterpolationType_h | 46 #endif // CSSOffsetRotateInterpolationType_h |
OLD | NEW |