Index: third_party/WebKit/Source/core/animation/animatable/AnimatableLengthBox.cpp |
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthBox.cpp b/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthBox.cpp |
index 4aa039bc7fb43b8e3489abd3e71d6c92ed9695fd..fb3145ab58df93dd265034f66a8c6897d7ef3836 100644 |
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthBox.cpp |
+++ b/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthBox.cpp |
@@ -42,6 +42,15 @@ PassRefPtr<AnimatableValue> AnimatableLengthBox::interpolateTo(const AnimatableV |
AnimatableValue::interpolate(this->bottom(), lengthBox->bottom(), fraction)); |
} |
+bool AnimatableLengthBox::usesDefaultInterpolationWith(const AnimatableValue* other) const |
+{ |
+ const AnimatableLengthBox& otherBox = toAnimatableLengthBox(*other); |
+ return usesDefaultInterpolation(left(), otherBox.left()) |
+ || usesDefaultInterpolation(right(), otherBox.right()) |
+ || usesDefaultInterpolation(top(), otherBox.top()) |
+ || usesDefaultInterpolation(bottom(), otherBox.bottom()); |
+} |
+ |
bool AnimatableLengthBox::equalTo(const AnimatableValue* value) const |
{ |
const AnimatableLengthBox* lengthBox = toAnimatableLengthBox(value); |