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

Unified Diff: webkit/renderer/compositor_bindings/web_layer_impl.cc

Issue 24165003: Don't clone WebAnimation in WebLayerImpl::addAnimation(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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
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 f2a3cdea2b6339c2303f4c7ba8dac5af8453b782..6e6165fab106d77a21b3820b33a6eb1402dc9e4e 100644
--- a/webkit/renderer/compositor_bindings/web_layer_impl.cc
+++ b/webkit/renderer/compositor_bindings/web_layer_impl.cc
@@ -196,7 +196,7 @@ void WebLayerImpl::setAnimationDelegate(
bool WebLayerImpl::addAnimation(WebKit::WebAnimation* animation) {
return layer_->AddAnimation(
- static_cast<WebAnimationImpl*>(animation)->CloneToAnimation());
+ static_cast<WebAnimationImpl*>(animation)->PassAnimation());
}
void WebLayerImpl::removeAnimation(int animation_id) {

Powered by Google App Engine
This is Rietveld 408576698