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

Unified Diff: Source/core/platform/graphics/GraphicsLayer.cpp

Issue 23455058: WIP: WebLayer::addAnimation should transfer the ownership of WebAnimation instance. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.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
« no previous file with comments | « no previous file | public/platform/WebLayer.h » ('j') | public/platform/WebPassOwnPtr.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/graphics/GraphicsLayer.cpp
diff --git a/Source/core/platform/graphics/GraphicsLayer.cpp b/Source/core/platform/graphics/GraphicsLayer.cpp
index 6bae3b2b6188dfe0bdf56538530d2ae3c76a3c06..9006a21af071cbaa8d80c8d8bf9680ff6592b058 100644
--- a/Source/core/platform/graphics/GraphicsLayer.cpp
+++ b/Source/core/platform/graphics/GraphicsLayer.cpp
@@ -1000,7 +1000,7 @@ bool GraphicsLayer::addAnimation(const KeyframeValueList& values, const IntSize&
// Remove any existing animations with the same animation id and target property.
platformLayer()->removeAnimation(animationId, toAdd->targetProperty());
- return platformLayer()->addAnimation(toAdd.get());
+ return platformLayer()->addAnimation(toAdd.release());
}
return false;
« no previous file with comments | « no previous file | public/platform/WebLayer.h » ('j') | public/platform/WebPassOwnPtr.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698