Index: third_party/WebKit/Source/core/animation/animatable/AnimatableClipPathOperation.cpp |
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatableClipPathOperation.cpp b/third_party/WebKit/Source/core/animation/animatable/AnimatableClipPathOperation.cpp |
index 08d3f9c9be4d40447aec4e77561c9da3ae0fba77..07a20f6c7fab9fc9fb8863e09ccaecf3a406911e 100644 |
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatableClipPathOperation.cpp |
+++ b/third_party/WebKit/Source/core/animation/animatable/AnimatableClipPathOperation.cpp |
@@ -32,43 +32,6 @@ |
namespace blink { |
-bool AnimatableClipPathOperation::usesDefaultInterpolationWith( |
- const AnimatableValue* value) const { |
- const AnimatableClipPathOperation* toOperation = |
- toAnimatableClipPathOperation(value); |
- |
- if (m_operation->type() != ClipPathOperation::SHAPE || |
- toOperation->m_operation->type() != ClipPathOperation::SHAPE) |
- return true; |
- |
- const BasicShape* fromShape = |
- toShapeClipPathOperation(getClipPathOperation())->basicShape(); |
- const BasicShape* toShape = |
- toShapeClipPathOperation(toOperation->getClipPathOperation()) |
- ->basicShape(); |
- |
- return !fromShape->canBlend(toShape); |
-} |
- |
-PassRefPtr<AnimatableValue> AnimatableClipPathOperation::interpolateTo( |
- const AnimatableValue* value, |
- double fraction) const { |
- if (usesDefaultInterpolationWith(value)) |
- return defaultInterpolateTo(this, value, fraction); |
- |
- const AnimatableClipPathOperation* toOperation = |
- toAnimatableClipPathOperation(value); |
- const BasicShape* fromShape = |
- toShapeClipPathOperation(getClipPathOperation())->basicShape(); |
- const BasicShape* toShape = |
- toShapeClipPathOperation(toOperation->getClipPathOperation()) |
- ->basicShape(); |
- |
- return AnimatableClipPathOperation::create( |
- ShapeClipPathOperation::create(toShape->blend(fromShape, fraction)) |
- .get()); |
-} |
- |
bool AnimatableClipPathOperation::equalTo(const AnimatableValue* value) const { |
const ClipPathOperation* operation = |
toAnimatableClipPathOperation(value)->m_operation.get(); |