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

Unified Diff: third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp
diff --git a/third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp b/third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp
index 0a9074f8b5e5218383a1b1ef551487d346afcb04..289334305349dc682f922f5b84d48014a132d53d 100644
--- a/third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp
+++ b/third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp
@@ -31,7 +31,6 @@
#include "core/svg/graphics/SVGImage.h"
#include "platform/graphics/ImageObserver.h"
#include "wtf/CurrentTime.h"
-#include "wtf/PtrUtil.h"
namespace blink {
@@ -40,7 +39,7 @@ static const double animationFrameDelay = 0.025;
SVGImageChromeClient::SVGImageChromeClient(SVGImage* image)
: m_image(image)
, m_animationTimer(
- wrapUnique(new Timer<SVGImageChromeClient>(
+ adoptPtr(new Timer<SVGImageChromeClient>(
this, &SVGImageChromeClient::animationTimerFired)))
, m_timelineState(Running)
{
@@ -114,7 +113,7 @@ void SVGImageChromeClient::scheduleAnimation(Widget*)
void SVGImageChromeClient::setTimer(Timer<SVGImageChromeClient>* timer)
{
- m_animationTimer = wrapUnique(timer);
+ m_animationTimer = adoptPtr(timer);
}
void SVGImageChromeClient::animationTimerFired(Timer<SVGImageChromeClient>*)

Powered by Google App Engine
This is Rietveld 408576698