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

Unified Diff: third_party/WebKit/Source/core/animation/CSSLengthListInterpolationType.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/CSSLengthListInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSLengthListInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSLengthListInterpolationType.cpp
index d666851eb7f8b112b69e433ab1b032f64734cf2f..54d4eab19b9295936c09c4f0c51eef15aac86357 100644
--- a/third_party/WebKit/Source/core/animation/CSSLengthListInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSLengthListInterpolationType.cpp
@@ -61,7 +61,8 @@ InterpolationValue CSSLengthListInterpolationType::MaybeConvertInitial(
return MaybeConvertLengthList(initial_length_list, 1);
}
-class InheritedLengthListChecker : public InterpolationType::ConversionChecker {
+class InheritedLengthListChecker
+ : public CSSInterpolationType::CSSConversionChecker {
public:
~InheritedLengthListChecker() final {}
@@ -77,12 +78,11 @@ class InheritedLengthListChecker : public InterpolationType::ConversionChecker {
const Vector<Length>& inherited_length_list)
: property_(property), inherited_length_list_(inherited_length_list) {}
- bool IsValid(const InterpolationEnvironment& environment,
+ bool IsValid(const StyleResolverState& state,
const InterpolationValue& underlying) const final {
Vector<Length> inherited_length_list;
- LengthListPropertyFunctions::GetLengthList(
- property_, *environment.GetState().ParentStyle(),
- inherited_length_list);
+ LengthListPropertyFunctions::GetLengthList(property_, *state.ParentStyle(),
+ inherited_length_list);
return inherited_length_list_ == inherited_length_list;
}

Powered by Google App Engine
This is Rietveld 408576698