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

Unified Diff: third_party/WebKit/Source/core/animation/CSSFontVariationSettingsInterpolationType.cpp

Issue 2812213002: Add CSSInterpolationType specific ConversionChecker (Closed)
Patch Set: rebased 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/animation/CSSFontVariationSettingsInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSFontVariationSettingsInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSFontVariationSettingsInterpolationType.cpp
index e7b258b0559703265c4a9569dfda8711e1d2b707..a69d3edf9cbd4f5cc31106bda1d99755ab397405 100644
--- a/third_party/WebKit/Source/core/animation/CSSFontVariationSettingsInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSFontVariationSettingsInterpolationType.cpp
@@ -70,7 +70,7 @@ class UnderlyingTagsChecker : public InterpolationType::ConversionChecker {
};
class InheritedFontVariationSettingsChecker
- : public InterpolationType::ConversionChecker {
+ : public CSSInterpolationType::CSSConversionChecker {
public:
~InheritedFontVariationSettingsChecker() final {}
@@ -83,12 +83,11 @@ class InheritedFontVariationSettingsChecker
InheritedFontVariationSettingsChecker(const FontVariationSettings* settings)
: settings_(settings) {}
- bool IsValid(const InterpolationEnvironment& environment,
+ bool IsValid(const StyleResolverState& state,
const InterpolationValue&) const final {
- return DataEquivalent(settings_.Get(), environment.GetState()
- .ParentStyle()
- ->GetFontDescription()
- .VariationSettings());
+ return DataEquivalent(
+ settings_.Get(),
+ state.ParentStyle()->GetFontDescription().VariationSettings());
}
RefPtr<const FontVariationSettings> settings_;

Powered by Google App Engine
This is Rietveld 408576698