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

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

Issue 2191533003: Refactor Timer classes in preparation for landing FrameTimers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More build fixes Created 4 years, 5 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..8173387edf4e5c18e3bca6b3696ebea48849f010 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 {
@@ -112,12 +111,12 @@ void SVGImageChromeClient::scheduleAnimation(Widget*)
m_animationTimer->startOneShot(fireTime, BLINK_FROM_HERE);
}
-void SVGImageChromeClient::setTimer(Timer<SVGImageChromeClient>* timer)
+void SVGImageChromeClient::setTimer(std::unique_ptr<TimerBase> timer)
{
- m_animationTimer = wrapUnique(timer);
+ m_animationTimer = std::move(timer);
}
-void SVGImageChromeClient::animationTimerFired(Timer<SVGImageChromeClient>*)
+void SVGImageChromeClient::animationTimerFired(TimerBase*)
{
if (!m_image)
return;

Powered by Google App Engine
This is Rietveld 408576698