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

Unified Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableFilterOperations.cpp

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/AnimatableFilterOperations.cpp
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatableFilterOperations.cpp b/third_party/WebKit/Source/core/animation/animatable/AnimatableFilterOperations.cpp
index 6e29ab6b1e5b3840f903ca5ff32060c096e614e0..31d125defe926fbe9e3017952acd99f98d66bb6b 100644
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatableFilterOperations.cpp
+++ b/third_party/WebKit/Source/core/animation/animatable/AnimatableFilterOperations.cpp
@@ -34,21 +34,15 @@
namespace blink {
-bool AnimatableFilterOperations::UsesDefaultInterpolationWith(
- const AnimatableValue* value) const {
- const AnimatableFilterOperations* target =
- ToAnimatableFilterOperations(value);
- return !Operations().CanInterpolateWith(target->Operations());
-}
-
PassRefPtr<AnimatableValue> AnimatableFilterOperations::InterpolateTo(
const AnimatableValue* value,
double fraction) const {
- if (UsesDefaultInterpolationWith(value))
- return DefaultInterpolateTo(this, value, fraction);
-
const AnimatableFilterOperations* target =
ToAnimatableFilterOperations(value);
+
+ if (!Operations().CanInterpolateWith(target->Operations()))
+ return DefaultInterpolateTo(this, value, fraction);
+
FilterOperations result;
size_t from_size = Operations().size();
size_t to_size = target->Operations().size();
@@ -70,8 +64,4 @@ PassRefPtr<AnimatableValue> AnimatableFilterOperations::InterpolateTo(
return AnimatableFilterOperations::Create(result);
}
-bool AnimatableFilterOperations::EqualTo(const AnimatableValue* value) const {
- return Operations() == ToAnimatableFilterOperations(value)->Operations();
-}
-
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698