Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Unified Diff: webkit/compositor_bindings/web_layer_impl.cc

Issue 13465014: LayerTreeHost::SetAnimationEvents should use AnimationRegistrar (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/tree_synchronizer_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « cc/trees/tree_synchronizer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698