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

Unified Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableUnknown.h

Issue 2893313004: Remove unused AnimatableValue types (Closed)
Patch Set: 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/animatable/AnimatableUnknown.h
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatableUnknown.h b/third_party/WebKit/Source/core/animation/animatable/AnimatableUnknown.h
index 75e461f263b1742829d4207dcc00211087a790e2..5b3969b196682cfe1ce9a6c63e67158c60d27cfc 100644
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatableUnknown.h
+++ b/third_party/WebKit/Source/core/animation/animatable/AnimatableUnknown.h
@@ -59,28 +59,15 @@ class AnimatableUnknown final : public AnimatableValue {
return DefaultInterpolateTo(this, value, fraction);
}
- bool UsesDefaultInterpolationWith(const AnimatableValue*) const override;
-
private:
explicit AnimatableUnknown(const CSSValue* value) : value_(value) {}
AnimatableType GetType() const override { return kTypeUnknown; }
- bool EqualTo(const AnimatableValue*) const override;
const Persistent<const CSSValue> value_;
};
DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableUnknown, IsUnknown());
-inline bool AnimatableUnknown::EqualTo(const AnimatableValue* value) const {
- const AnimatableUnknown* unknown = ToAnimatableUnknown(value);
- return DataEquivalent(value_, unknown->value_);
-}
-
-inline bool AnimatableUnknown::UsesDefaultInterpolationWith(
- const AnimatableValue* value) const {
- return !EqualTo(value);
-}
-
} // namespace blink
#endif // AnimatableUnknown_h

Powered by Google App Engine
This is Rietveld 408576698