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

Unified Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableLengthSize.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/AnimatableLengthSize.cpp
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthSize.cpp b/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthSize.cpp
index 8c6fbf954db238ef98e51a85911f63ba304ea927..c464f43136d44f1345acd1e9e027cd3a84010d56 100644
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthSize.cpp
+++ b/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthSize.cpp
@@ -32,28 +32,10 @@
namespace blink {
-PassRefPtr<AnimatableValue> AnimatableLengthSize::interpolateTo(
- const AnimatableValue* value,
- double fraction) const {
- const AnimatableLengthSize* lengthSize = toAnimatableLengthSize(value);
- return AnimatableLengthSize::create(
- AnimatableValue::interpolate(this->width(), lengthSize->width(),
- fraction),
- AnimatableValue::interpolate(this->height(), lengthSize->height(),
- fraction));
-}
-
bool AnimatableLengthSize::equalTo(const AnimatableValue* value) const {
const AnimatableLengthSize* lengthSize = toAnimatableLengthSize(value);
- return width()->equals(lengthSize->width()) &&
- height()->equals(lengthSize->height());
-}
-
-bool AnimatableLengthSize::usesDefaultInterpolationWith(
- const AnimatableValue* other) const {
- const AnimatableLengthSize* lengthSize = toAnimatableLengthSize(other);
- return usesDefaultInterpolation(width(), lengthSize->width()) ||
- usesDefaultInterpolation(height(), lengthSize->height());
+ return m_width->equals(lengthSize->m_width.get()) &&
+ m_height->equals(lengthSize->m_height.get());
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698