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

Unified Diff: third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.h

Issue 2029163002: Worklets - Change inheritance heirarchy of WorkletGlobalScope (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase. Created 4 years, 6 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/csspaint/PaintWorkletGlobalScope.h
diff --git a/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.h b/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.h
index e178f7e925be21de65935431a3b1ce5b376faa74..c56d612e7f1929fe7ced7d73f5b3ab6292f4c3e9 100644
--- a/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.h
+++ b/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.h
@@ -7,8 +7,8 @@
#include "bindings/core/v8/ScriptValue.h"
#include "core/dom/ExecutionContext.h"
+#include "core/workers/MainThreadWorkletGlobalScope.h"
#include "modules/ModulesExport.h"
-#include "modules/worklet/WorkletGlobalScope.h"
#include "platform/graphics/ImageBuffer.h"
namespace blink {
@@ -17,12 +17,13 @@ class CSSPaintDefinition;
class CSSPaintImageGeneratorImpl;
class ExceptionState;
-class MODULES_EXPORT PaintWorkletGlobalScope : public WorkletGlobalScope {
+class MODULES_EXPORT PaintWorkletGlobalScope final : public MainThreadWorkletGlobalScope {
DEFINE_WRAPPERTYPEINFO();
+ USING_GARBAGE_COLLECTED_MIXIN(PaintWorkletGlobalScope);
public:
static PaintWorkletGlobalScope* create(LocalFrame*, const KURL&, const String& userAgent, PassRefPtr<SecurityOrigin>, v8::Isolate*);
~PaintWorkletGlobalScope() override;
- void dispose() override;
+ void dispose() final;
bool isPaintWorkletGlobalScope() const final { return true; }
void registerPaint(const String& name, const ScriptValue& ctor, ExceptionState&);

Powered by Google App Engine
This is Rietveld 408576698