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

Unified Diff: third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h

Issue 2490443002: Make OffscreenCanvas an EventTarget (Closed)
Patch Set: tests added Created 4 years, 1 month 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/html/canvas/CanvasRenderingContext.h
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
index 8467f9611e13ff66da5ab948abe4da332ec069b7..2f50bb2c444d0bd6e0d07962c5e51fd725f803b4 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
@@ -176,6 +176,12 @@ class CORE_EXPORT CanvasRenderingContext
return m_creationAttributes;
}
+ // This method should be called on OffscreenCanvas's context only.
+ virtual ExecutionContext* getExecutionContext() {
+ NOTREACHED();
+ return nullptr;
+ }
+
protected:
CanvasRenderingContext(HTMLCanvasElement*,
OffscreenCanvas*,

Powered by Google App Engine
This is Rietveld 408576698