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

Unified Diff: third_party/WebKit/Source/core/animation/CSSRotateInterpolationType.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/CSSRotateInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSRotateInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSRotateInterpolationType.cpp
index 0bc7c384b1af0397694009ab5e820511cf6dc025..aae35738abd9f2d9c97d4d75faaaf67f967f6981 100644
--- a/third_party/WebKit/Source/core/animation/CSSRotateInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSRotateInterpolationType.cpp
@@ -150,17 +150,17 @@ InterpolationValue ConvertRotation(const OptionalRotation& rotation) {
CSSRotateNonInterpolableValue::Create(rotation));
}
-class InheritedRotationChecker : public InterpolationType::ConversionChecker {
+class InheritedRotationChecker
+ : public CSSInterpolationType::CSSConversionChecker {
public:
static std::unique_ptr<InheritedRotationChecker> Create(
const OptionalRotation& inherited_rotation) {
return WTF::WrapUnique(new InheritedRotationChecker(inherited_rotation));
}
- bool IsValid(const InterpolationEnvironment& environment,
+ bool IsValid(const StyleResolverState& state,
const InterpolationValue& underlying) const final {
- OptionalRotation inherited_rotation =
- GetRotation(*environment.GetState().ParentStyle());
+ OptionalRotation inherited_rotation = GetRotation(*state.ParentStyle());
if (inherited_rotation_.IsNone() || inherited_rotation.IsNone())
return inherited_rotation.IsNone() == inherited_rotation.IsNone();
return inherited_rotation_.GetRotation().axis ==

Powered by Google App Engine
This is Rietveld 408576698