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/CSSTransformInterpolationType.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/CSSTransformInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSTransformInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSTransformInterpolationType.cpp
index 8bf73ec5eee30863cf693c18d711e8290440d7ac..a926e11c338a0a721498c93f9a593faab60f3b80 100644
--- a/third_party/WebKit/Source/core/animation/CSSTransformInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSTransformInterpolationType.cpp
@@ -129,17 +129,17 @@ InterpolationValue ConvertTransform(const TransformOperations& transform) {
return ConvertTransform(TransformOperations(transform));
}
-class InheritedTransformChecker : public InterpolationType::ConversionChecker {
+class InheritedTransformChecker
+ : public CSSInterpolationType::CSSConversionChecker {
public:
static std::unique_ptr<InheritedTransformChecker> Create(
const TransformOperations& inherited_transform) {
return WTF::WrapUnique(new InheritedTransformChecker(inherited_transform));
}
- bool IsValid(const InterpolationEnvironment& environment,
+ bool IsValid(const StyleResolverState& state,
const InterpolationValue& underlying) const final {
- return inherited_transform_ ==
- environment.GetState().ParentStyle()->Transform();
+ return inherited_transform_ == state.ParentStyle()->Transform();
}
private:

Powered by Google App Engine
This is Rietveld 408576698