Chromium Code Reviews| 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 67647d335dc27e152c3937d6ff5d7ae7871b7d06..f4d180999ee7361d04f2e0e102c68c3695bcae36 100644 |
| --- a/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthSize.cpp |
| +++ b/third_party/WebKit/Source/core/animation/animatable/AnimatableLengthSize.cpp |
| @@ -46,4 +46,11 @@ bool AnimatableLengthSize::equalTo(const AnimatableValue* value) const |
| return width()->equals(lengthSize->width()) && height()->equals(lengthSize->height()); |
| } |
| +bool AnimatableLengthSize::usesDefaultInterpolationWith(const AnimatableValue* other) const |
| +{ |
| + const AnimatableLengthSize* lengthSize = toAnimatableLengthSize(other); |
| + return usesDefaultInterpolation(this->width(), lengthSize->width()) |
| + || usesDefaultInterpolation(this->height(), lengthSize->height()); |
|
alancutter (OOO until 2018)
2016/02/28 23:14:21
"this->" is redundant and can be removed.
|
| +} |
| + |
| } // namespace blink |