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

Unified Diff: third_party/WebKit/Source/core/frame/DOMTimerCoordinator.cpp

Issue 2124693002: Worker: Fix broken GC logic on Dedicated Worker while DOMTimer is set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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/frame/DOMTimerCoordinator.cpp
diff --git a/third_party/WebKit/Source/core/frame/DOMTimerCoordinator.cpp b/third_party/WebKit/Source/core/frame/DOMTimerCoordinator.cpp
index e9311351a96a3eeec2cfae6bedbe32d40487b759..01e4007345710e22d4792ddf826b75145e486144 100644
--- a/third_party/WebKit/Source/core/frame/DOMTimerCoordinator.cpp
+++ b/third_party/WebKit/Source/core/frame/DOMTimerCoordinator.cpp
@@ -44,6 +44,11 @@ DOMTimer* DOMTimerCoordinator::removeTimeoutByID(int timeoutID)
return removedTimer;
}
+bool DOMTimerCoordinator::hasInstalledTimeout() const
+{
+ return !m_timers.isEmpty();
+}
+
DEFINE_TRACE(DOMTimerCoordinator)
{
visitor->trace(m_timers);

Powered by Google App Engine
This is Rietveld 408576698