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

Unified Diff: third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp

Issue 1839913002: Implement PaintWorkletGlobalScope#registerPaint() for the CSS Paint API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + remove WillBe types. Created 4 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp
diff --git a/third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp b/third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp
index f0f67108d4161878b755a92e87ce2516cfa840fe..af3f14b34648884b50cdfb7a82e27e04d0ae6e8c 100644
--- a/third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp
+++ b/third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp
@@ -25,6 +25,16 @@ WorkletGlobalScope::~WorkletGlobalScope()
{
}
+void WorkletGlobalScope::dispose()
+{
+ stopActiveDOMObjects();
+
+ ASSERT(m_scriptController);
+ m_scriptController->willScheduleExecutionTermination();
+ m_scriptController->dispose();
+ m_scriptController.clear();
+}
+
WorkletConsole* WorkletGlobalScope::console()
{
if (!m_console)
« no previous file with comments | « third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698