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