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

Unified Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableLength.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/AnimatableLength.cpp
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatableLength.cpp b/third_party/WebKit/Source/core/animation/animatable/AnimatableLength.cpp
index aded708ec3b9e885ed1a874219760ebf79d79260..21212aa03a707f7fc238bb09a808f0a1bb4eb42c 100644
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatableLength.cpp
+++ b/third_party/WebKit/Source/core/animation/animatable/AnimatableLength.cpp
@@ -64,16 +64,6 @@ Length AnimatableLength::getLength(float zoom, ValueRange range) const {
PixelsAndPercent(m_pixels * zoom, m_percent), range));
}
-PassRefPtr<AnimatableValue> AnimatableLength::interpolateTo(
- const AnimatableValue* value,
- double fraction) const {
- const AnimatableLength* length = toAnimatableLength(value);
- return create(blend(m_pixels, length->m_pixels, fraction),
- blend(m_percent, length->m_percent, fraction),
- m_hasPixels || length->m_hasPixels,
- m_hasPercent || length->m_hasPercent);
-}
-
bool AnimatableLength::equalTo(const AnimatableValue* value) const {
const AnimatableLength* length = toAnimatableLength(value);
return m_pixels == length->m_pixels && m_percent == length->m_percent &&

Powered by Google App Engine
This is Rietveld 408576698