OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CSSFontVariationSettingsInterpolationType_h |
| 6 #define CSSFontVariationSettingsInterpolationType_h |
| 7 |
| 8 #include "core/animation/CSSInterpolationType.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 class CSSFontVariationSettingsInterpolationType : public CSSInterpolationType { |
| 13 public: |
| 14 CSSFontVariationSettingsInterpolationType(PropertyHandle property) |
| 15 : CSSInterpolationType(property) { |
| 16 DCHECK_EQ(CssProperty(), CSSPropertyFontVariationSettings); |
| 17 } |
| 18 |
| 19 InterpolationValue MaybeConvertStandardPropertyUnderlyingValue( |
| 20 const ComputedStyle&) const final; |
| 21 PairwiseInterpolationValue MaybeMergeSingles( |
| 22 InterpolationValue&& start, |
| 23 InterpolationValue&& end) const final; |
| 24 void Composite(UnderlyingValueOwner&, |
| 25 double underlying_fraction, |
| 26 const InterpolationValue&, |
| 27 double interpolation_fraction) const final; |
| 28 void ApplyStandardPropertyValue(const InterpolableValue&, |
| 29 const NonInterpolableValue*, |
| 30 StyleResolverState&) const final; |
| 31 |
| 32 private: |
| 33 InterpolationValue MaybeConvertNeutral(const InterpolationValue& underlying, |
| 34 ConversionCheckers&) const final; |
| 35 InterpolationValue MaybeConvertInitial(const StyleResolverState&, |
| 36 ConversionCheckers&) const final; |
| 37 InterpolationValue MaybeConvertInherit(const StyleResolverState&, |
| 38 ConversionCheckers&) const final; |
| 39 InterpolationValue MaybeConvertValue(const CSSValue&, |
| 40 const StyleResolverState*, |
| 41 ConversionCheckers&) const final; |
| 42 }; |
| 43 |
| 44 } // namespace blink |
| 45 |
| 46 #endif // CSSFontVariationSettingsInterpolationType_h |
OLD | NEW |