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

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

Issue 2750293003: Delete unused AnimatableValue code (Closed)
Patch Set: Fix unit tests Created 3 years, 9 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/AnimatableVisibility.cpp
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatableVisibility.cpp b/third_party/WebKit/Source/core/animation/animatable/AnimatableVisibility.cpp
index 0f7f049f573375005575da3dc68e8bafe4cd10b3..35c70842ae9f56d1f663ace82af43eb6f8a87c20 100644
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatableVisibility.cpp
+++ b/third_party/WebKit/Source/core/animation/animatable/AnimatableVisibility.cpp
@@ -32,27 +32,6 @@
namespace blink {
-bool AnimatableVisibility::usesDefaultInterpolationWith(
- const AnimatableValue* value) const {
- EVisibility from = m_visibility;
- EVisibility to = toAnimatableVisibility(value)->m_visibility;
- return from != EVisibility::kVisible && to != EVisibility::kVisible;
-}
-
-PassRefPtr<AnimatableValue> AnimatableVisibility::interpolateTo(
- const AnimatableValue* value,
- double fraction) const {
- EVisibility from = m_visibility;
- EVisibility to = toAnimatableVisibility(value)->m_visibility;
- if (from != EVisibility::kVisible && to != EVisibility::kVisible)
- return defaultInterpolateTo(this, value, fraction);
- if (fraction <= 0)
- return takeConstRef(this);
- if (fraction >= 1)
- return takeConstRef(value);
- return takeConstRef(from == EVisibility::kVisible ? this : value);
-}
-
bool AnimatableVisibility::equalTo(const AnimatableValue* value) const {
return m_visibility == toAnimatableVisibility(value)->m_visibility;
}

Powered by Google App Engine
This is Rietveld 408576698