| Index: third_party/WebKit/Source/core/frame/DOMTimerCoordinator.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/DOMTimerCoordinator.cpp b/third_party/WebKit/Source/core/frame/DOMTimerCoordinator.cpp
|
| index e7238f90ecf41b3b538d0700749f994f00783dfb..27e815636bbfc1969b464f3eb8940c69a866a27e 100644
|
| --- a/third_party/WebKit/Source/core/frame/DOMTimerCoordinator.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/DOMTimerCoordinator.cpp
|
| @@ -31,15 +31,15 @@ int DOMTimerCoordinator::installNewTimeout(ExecutionContext* context, ScheduledA
|
| return timeoutID;
|
| }
|
|
|
| -void DOMTimerCoordinator::removeTimeoutByID(int timeoutID)
|
| +DOMTimer* DOMTimerCoordinator::removeTimeoutByID(int timeoutID)
|
| {
|
| if (timeoutID <= 0)
|
| - return;
|
| + return nullptr;
|
|
|
| if (DOMTimer* removedTimer = m_timers.get(timeoutID))
|
| removedTimer->disposeTimer();
|
|
|
| - m_timers.remove(timeoutID);
|
| + return m_timers.take(timeoutID);
|
| }
|
|
|
| DEFINE_TRACE(DOMTimerCoordinator)
|
|
|