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

Unified Diff: third_party/WebKit/Source/core/animation/CSSNumberInterpolationType.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/CSSNumberInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSNumberInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSNumberInterpolationType.cpp
index a700b143e569c2c55ae0411747fa6724c3d70214..8bf5684ba6e4f8f0722057dcf202c4bffc78285b 100644
--- a/third_party/WebKit/Source/core/animation/CSSNumberInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSNumberInterpolationType.cpp
@@ -12,7 +12,8 @@
namespace blink {
-class InheritedNumberChecker : public InterpolationType::ConversionChecker {
+class InheritedNumberChecker
+ : public CSSInterpolationType::CSSConversionChecker {
public:
static std::unique_ptr<InheritedNumberChecker> Create(CSSPropertyID property,
double number) {
@@ -23,11 +24,11 @@ class InheritedNumberChecker : public InterpolationType::ConversionChecker {
InheritedNumberChecker(CSSPropertyID property, double number)
: property_(property), number_(number) {}
- bool IsValid(const InterpolationEnvironment& environment,
+ bool IsValid(const StyleResolverState& state,
const InterpolationValue& underlying) const final {
double parent_number;
- if (!NumberPropertyFunctions::GetNumber(
- property_, *environment.GetState().ParentStyle(), parent_number))
+ if (!NumberPropertyFunctions::GetNumber(property_, *state.ParentStyle(),
+ parent_number))
return false;
return parent_number == number_;
}

Powered by Google App Engine
This is Rietveld 408576698