Index: Source/core/platform/graphics/GraphicsLayer.cpp |
diff --git a/Source/core/platform/graphics/GraphicsLayer.cpp b/Source/core/platform/graphics/GraphicsLayer.cpp |
index 4668d5eb9c5515b171e04915c2b7bdbdb7715966..c0fc459d0c308e8e260a75e79ae393dc7d1babc9 100644 |
--- a/Source/core/platform/graphics/GraphicsLayer.cpp |
+++ b/Source/core/platform/graphics/GraphicsLayer.cpp |
@@ -1021,14 +1021,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.release()); |
} |
void GraphicsLayer::pauseAnimation(int animationId, double timeOffset) |