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

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: fix win build. 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
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 cc0a4f42986e7f14b646daf3cb8e38765b45bfed..e065670646d3c66bdd203fee29c6ad03967ecf10 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)

Powered by Google App Engine
This is Rietveld 408576698