Index: third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h |
diff --git a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h |
index 656b4dd24c7d6d2a11270afbd14339a5fdc15ee2..283af41a87c38684633b40f6fde29d6731f3e919 100644 |
--- a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h |
+++ b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h |
@@ -8,6 +8,7 @@ |
#include "bindings/core/v8/ScriptPromise.h" |
#include "bindings/core/v8/ScriptState.h" |
#include "bindings/core/v8/ScriptWrappable.h" |
+#include "core/events/EventTarget.h" |
#include "core/html/HTMLCanvasElement.h" |
#include "core/html/canvas/CanvasImageSource.h" |
#include "core/offscreencanvas/ImageEncodeOptions.h" |
@@ -25,14 +26,13 @@ class |
typedef OffscreenCanvasRenderingContext2DOrWebGLRenderingContextOrWebGL2RenderingContext |
OffscreenRenderingContext; |
-class CORE_EXPORT OffscreenCanvas final |
- : public GarbageCollectedFinalized<OffscreenCanvas>, |
- public ScriptWrappable, |
- public CanvasImageSource { |
+class CORE_EXPORT OffscreenCanvas final : public EventTargetWithInlineData, |
+ public CanvasImageSource { |
DEFINE_WRAPPERTYPEINFO(); |
public: |
static OffscreenCanvas* create(unsigned width, unsigned height); |
+ ~OffscreenCanvas() override {} |
// IDL attributes |
unsigned width() const { return m_size.width(); } |
@@ -84,6 +84,12 @@ class CORE_EXPORT OffscreenCanvas final |
uint64_t nonceHigh() const { return m_nonceHigh; } |
uint64_t nonceLow() const { return m_nonceLow; } |
+ // EventTarget implementation |
+ const AtomicString& interfaceName() const final { |
+ return EventTargetNames::OffscreenCanvas; |
+ } |
+ ExecutionContext* getExecutionContext() const final; |
+ |
// CanvasImageSource implementation |
PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*, |
AccelerationHint, |