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

Unified Diff: third_party/WebKit/Source/core/animation/CSSFontWeightInterpolationType.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/CSSFontWeightInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSFontWeightInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSFontWeightInterpolationType.cpp
index cee081faf1344541dd82ff764112607234bfca62..6d3ce8faffd8e6264fa27165ffbd88338e9a4fbe 100644
--- a/third_party/WebKit/Source/core/animation/CSSFontWeightInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSFontWeightInterpolationType.cpp
@@ -12,7 +12,8 @@
namespace blink {
-class InheritedFontWeightChecker : public InterpolationType::ConversionChecker {
+class InheritedFontWeightChecker
+ : public CSSInterpolationType::CSSConversionChecker {
public:
static std::unique_ptr<InheritedFontWeightChecker> Create(
FontWeight font_weight) {
@@ -23,10 +24,9 @@ class InheritedFontWeightChecker : public InterpolationType::ConversionChecker {
InheritedFontWeightChecker(FontWeight font_weight)
: font_weight_(font_weight) {}
- bool IsValid(const InterpolationEnvironment& environment,
+ bool IsValid(const StyleResolverState& state,
const InterpolationValue&) const final {
- return font_weight_ ==
- environment.GetState().ParentStyle()->GetFontWeight();
+ return font_weight_ == state.ParentStyle()->GetFontWeight();
}
const double font_weight_;

Powered by Google App Engine
This is Rietveld 408576698