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

Unified Diff: third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp

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/offscreencanvas/OffscreenCanvas.cpp
diff --git a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
index 94cbf94f568d6c2c2578b12199da58119e0b4067..d5517df272903e2ee0f9d9d89a47f66c86187ec7 100644
--- a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
+++ b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
@@ -237,8 +237,13 @@ ScriptPromise OffscreenCanvas::convertToBlob(ScriptState* scriptState,
return resolver->promise();
}
+ExecutionContext* OffscreenCanvas::getExecutionContext() const {
+ return m_context->getExecutionContext();
+}
+
DEFINE_TRACE(OffscreenCanvas) {
visitor->trace(m_context);
+ EventTarget::trace(visitor);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698