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

Unified Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableLengthPoint3D.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/AnimatableLengthPoint3D.cpp
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthPoint3D.cpp b/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthPoint3D.cpp
index d41c181cdb499c8759dbc06359039a0ef89a053d..feddccc87c08049997b1cb74f5c5fe9940072899 100644
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthPoint3D.cpp
+++ b/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthPoint3D.cpp
@@ -32,20 +32,11 @@
namespace blink {
-PassRefPtr<AnimatableValue> AnimatableLengthPoint3D::interpolateTo(
- const AnimatableValue* value,
- double fraction) const {
- const AnimatableLengthPoint3D* lengthPoint = toAnimatableLengthPoint3D(value);
- return AnimatableLengthPoint3D::create(
- AnimatableValue::interpolate(this->x(), lengthPoint->x(), fraction),
- AnimatableValue::interpolate(this->y(), lengthPoint->y(), fraction),
- AnimatableValue::interpolate(this->z(), lengthPoint->z(), fraction));
-}
-
bool AnimatableLengthPoint3D::equalTo(const AnimatableValue* value) const {
const AnimatableLengthPoint3D* lengthPoint = toAnimatableLengthPoint3D(value);
- return x()->equals(lengthPoint->x()) && y()->equals(lengthPoint->y()) &&
- z()->equals(lengthPoint->z());
+ return m_x->equals(lengthPoint->m_x.get()) &&
+ m_y->equals(lengthPoint->m_y.get()) &&
+ m_z->equals(lengthPoint->m_z.get());
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698