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

Unified Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableLengthPoint.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/AnimatableLengthPoint.cpp
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthPoint.cpp b/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthPoint.cpp
index 1274c07f405200bd77d7bab5a62a866b401c3275..dead6316c7f44bfff0f784c3f4e9c764cc59d51f 100644
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthPoint.cpp
+++ b/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthPoint.cpp
@@ -32,24 +32,10 @@
namespace blink {
-bool AnimatableLengthPoint::usesDefaultInterpolationWith(
- const AnimatableValue* value) const {
- const AnimatableLengthPoint* other = toAnimatableLengthPoint(value);
- return this->x()->isUnknown() || other->x()->isUnknown();
-}
-
-PassRefPtr<AnimatableValue> AnimatableLengthPoint::interpolateTo(
- const AnimatableValue* value,
- double fraction) const {
- const AnimatableLengthPoint* lengthPoint = toAnimatableLengthPoint(value);
- return AnimatableLengthPoint::create(
- AnimatableValue::interpolate(this->x(), lengthPoint->x(), fraction),
- AnimatableValue::interpolate(this->y(), lengthPoint->y(), fraction));
-}
-
bool AnimatableLengthPoint::equalTo(const AnimatableValue* value) const {
const AnimatableLengthPoint* lengthPoint = toAnimatableLengthPoint(value);
- return x()->equals(lengthPoint->x()) && y()->equals(lengthPoint->y());
+ return m_x->equals(lengthPoint->m_x.get()) &&
+ m_y->equals(lengthPoint->m_y.get());
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698