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

Unified Diff: third_party/WebKit/Source/core/animation/CSSTranslateInterpolationType.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/CSSTranslateInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSTranslateInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSTranslateInterpolationType.cpp
index 478e1e7f8b5819d1e20a6ece1ef45cb449655688..a9883b664bdea8a9a7da64349b4a906817f3bc3c 100644
--- a/third_party/WebKit/Source/core/animation/CSSTranslateInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSTranslateInterpolationType.cpp
@@ -23,7 +23,8 @@ bool IsNoneValue(const InterpolationValue& value) {
return ToInterpolableList(*value.interpolable_value).length() == 0;
}
-class InheritedTranslateChecker : public InterpolationType::ConversionChecker {
+class InheritedTranslateChecker
+ : public CSSInterpolationType::CSSConversionChecker {
public:
~InheritedTranslateChecker() {}
@@ -33,10 +34,10 @@ class InheritedTranslateChecker : public InterpolationType::ConversionChecker {
new InheritedTranslateChecker(std::move(inherited_translate)));
}
- bool IsValid(const InterpolationEnvironment& environment,
+ bool IsValid(const StyleResolverState& state,
const InterpolationValue& underlying) const final {
const TransformOperation* inherited_translate =
- environment.GetState().ParentStyle()->Translate();
+ state.ParentStyle()->Translate();
if (inherited_translate_ == inherited_translate)
return true;
if (!inherited_translate_ || !inherited_translate)

Powered by Google App Engine
This is Rietveld 408576698