| Index: Source/core/platform/graphics/GraphicsLayer.cpp
|
| diff --git a/Source/core/platform/graphics/GraphicsLayer.cpp b/Source/core/platform/graphics/GraphicsLayer.cpp
|
| index 6b965ce0241ee39ea58265f2db112365c93a8968..bbbc5ea6bbd55692e66939292433c9230e601e23 100644
|
| --- a/Source/core/platform/graphics/GraphicsLayer.cpp
|
| +++ b/Source/core/platform/graphics/GraphicsLayer.cpp
|
| @@ -1023,14 +1023,15 @@ void GraphicsLayer::setContentsToMedia(WebLayer* layer)
|
| setContentsTo(ContentsLayerForVideo, layer);
|
| }
|
|
|
| -bool GraphicsLayer::addAnimation(WebAnimation* animation)
|
| +bool GraphicsLayer::addAnimation(PassOwnPtr<WebAnimation> popAnimation)
|
| {
|
| + OwnPtr<WebAnimation> animation(popAnimation);
|
| ASSERT(animation);
|
| platformLayer()->setAnimationDelegate(this);
|
|
|
| // Remove any existing animations with the same animation id and target property.
|
| platformLayer()->removeAnimation(animation->id(), animation->targetProperty());
|
| - return platformLayer()->addAnimation(animation);
|
| + return platformLayer()->addAnimation(animation.leakPtr());
|
| }
|
|
|
| void GraphicsLayer::pauseAnimation(int animationId, double timeOffset)
|
|
|