OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CSSLengthInterpolationType_h | 5 #ifndef CSSLengthInterpolationType_h |
6 #define CSSLengthInterpolationType_h | 6 #define CSSLengthInterpolationType_h |
7 | 7 |
8 #include "core/animation/CSSInterpolationType.h" | 8 #include "core/animation/CSSInterpolationType.h" |
9 #include "core/animation/LengthPropertyFunctions.h" | 9 #include "core/animation/LengthPropertyFunctions.h" |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class ComputedStyle; | 14 class ComputedStyle; |
15 class CSSToLengthConversionData; | |
16 | 15 |
17 class CSSLengthInterpolationType : public CSSInterpolationType { | 16 class CSSLengthInterpolationType : public CSSInterpolationType { |
18 public: | 17 public: |
19 CSSLengthInterpolationType(PropertyHandle); | 18 CSSLengthInterpolationType(PropertyHandle); |
20 | 19 |
21 InterpolationValue maybeConvertUnderlyingValue( | 20 InterpolationValue maybeConvertUnderlyingValue( |
22 const InterpolationEnvironment&) const final; | 21 const InterpolationEnvironment&) const final; |
23 void composite(UnderlyingValueOwner&, | 22 void composite(UnderlyingValueOwner&, |
24 double underlyingFraction, | 23 double underlyingFraction, |
25 const InterpolationValue&, | 24 const InterpolationValue&, |
(...skipping 18 matching lines...) Expand all Loading... |
44 PairwiseInterpolationValue maybeMergeSingles( | 43 PairwiseInterpolationValue maybeMergeSingles( |
45 InterpolationValue&& start, | 44 InterpolationValue&& start, |
46 InterpolationValue&& end) const final; | 45 InterpolationValue&& end) const final; |
47 | 46 |
48 const ValueRange m_valueRange; | 47 const ValueRange m_valueRange; |
49 }; | 48 }; |
50 | 49 |
51 } // namespace blink | 50 } // namespace blink |
52 | 51 |
53 #endif // CSSLengthInterpolationType_h | 52 #endif // CSSLengthInterpolationType_h |
OLD | NEW |