Index: webkit/compositor_bindings/web_layer_impl.cc |
diff --git a/webkit/compositor_bindings/web_layer_impl.cc b/webkit/compositor_bindings/web_layer_impl.cc |
index c540688240d0ba222f2a6e2816245b0c88c3a621..d2158483cd064d4bb57b58ebb03239edade03d05 100644 |
--- a/webkit/compositor_bindings/web_layer_impl.cc |
+++ b/webkit/compositor_bindings/web_layer_impl.cc |
@@ -207,8 +207,7 @@ bool WebLayerImpl::hasActiveAnimation() { return layer_->HasActiveAnimation(); } |
void WebLayerImpl::transferAnimationsTo(WebLayer* other) { |
DCHECK(other); |
- static_cast<WebLayerImpl*>(other)->layer_->SetLayerAnimationController( |
- layer_->ReleaseLayerAnimationController()); |
+ layer_->TransferAnimationsTo(static_cast<WebLayerImpl*>(other)->layer_); |
} |
void WebLayerImpl::setForceRenderSurface(bool force_render_surface) { |