| Index: webkit/renderer/compositor_bindings/web_layer_impl.cc
|
| diff --git a/webkit/renderer/compositor_bindings/web_layer_impl.cc b/webkit/renderer/compositor_bindings/web_layer_impl.cc
|
| index 3ef7940c528e2d629817d099ec756d03b591f812..28b49641dd59bb5056d22b0b553e6127f9b901cb 100644
|
| --- a/webkit/renderer/compositor_bindings/web_layer_impl.cc
|
| +++ b/webkit/renderer/compositor_bindings/web_layer_impl.cc
|
| @@ -191,8 +191,12 @@ void WebLayerImpl::setAnimationDelegate(
|
| }
|
|
|
| bool WebLayerImpl::addAnimation(WebKit::WebAnimation* animation) {
|
| - return layer_->AddAnimation(
|
| - static_cast<WebAnimationImpl*>(animation)->CloneToAnimation());
|
| + bool result = layer_->AddAnimation(
|
| + static_cast<WebAnimationImpl*>(animation)->PassAnimation());
|
| +#if defined(ANIMATION_OWNERSHIP_TRANSFER)
|
| + delete animation;
|
| +#endif
|
| + return result;
|
| }
|
|
|
| void WebLayerImpl::removeAnimation(int animation_id) {
|
|
|