Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Side by Side Diff: third_party/WebKit/Source/core/animation/CSSFontVariationSettingsInterpolationType.h

Issue 2891743003: Enable interpolation of CSS property font-variation-settings (Closed)
Patch Set: updatetest Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698