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

Unified Diff: third_party/WebKit/Source/core/animation/CSSInterpolationType.h

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/CSSInterpolationType.h
diff --git a/third_party/WebKit/Source/core/animation/CSSInterpolationType.h b/third_party/WebKit/Source/core/animation/CSSInterpolationType.h
index f475404dc6619ce6348dd70c24d6eebc67e18c7c..7e72a404bb55c747a63f9ca633ecb84e488b6c15 100644
--- a/third_party/WebKit/Source/core/animation/CSSInterpolationType.h
+++ b/third_party/WebKit/Source/core/animation/CSSInterpolationType.h
@@ -17,6 +17,18 @@ class CSSInterpolationType : public InterpolationType {
public:
void SetCustomPropertyRegistration(const PropertyRegistration&);
+ class CSSConversionChecker : public ConversionChecker {
+ public:
+ bool IsValid(const InterpolationEnvironment& environment,
+ const InterpolationValue& underlying) const final {
+ return IsValid(environment.GetState(), underlying);
+ }
+
+ protected:
+ virtual bool IsValid(const StyleResolverState&,
+ const InterpolationValue& underlying) const = 0;
+ };
+
protected:
CSSInterpolationType(PropertyHandle);

Powered by Google App Engine
This is Rietveld 408576698