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

Unified Diff: third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.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/CSSLengthInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.cpp
index 114c0d1a5f74a250aada9174c60b26520360ea95..eb48d47dbb26355f51f6f6b699abdd8f87c5fd7e 100644
--- a/third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.cpp
@@ -28,7 +28,8 @@ float CSSLengthInterpolationType::EffectiveZoom(
: 1;
}
-class InheritedLengthChecker : public InterpolationType::ConversionChecker {
+class InheritedLengthChecker
+ : public CSSInterpolationType::CSSConversionChecker {
public:
static std::unique_ptr<InheritedLengthChecker> Create(CSSPropertyID property,
const Length& length) {
@@ -39,11 +40,11 @@ class InheritedLengthChecker : public InterpolationType::ConversionChecker {
InheritedLengthChecker(CSSPropertyID property, const Length& length)
: property_(property), length_(length) {}
- bool IsValid(const InterpolationEnvironment& environment,
+ bool IsValid(const StyleResolverState& state,
const InterpolationValue& underlying) const final {
Length parent_length;
- if (!LengthPropertyFunctions::GetLength(
- property_, *environment.GetState().ParentStyle(), parent_length))
+ if (!LengthPropertyFunctions::GetLength(property_, *state.ParentStyle(),
+ parent_length))
return false;
return parent_length == length_;
}

Powered by Google App Engine
This is Rietveld 408576698