| 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 dd916ce490d5c403343510f8fd5ea6b8aa661ffb..92e756506545e490dfd29ee696a3bd0d6b163659 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, RawPtr<Sch
|
| 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)
|
|
|