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

Unified Diff: third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.cpp

Issue 2490443002: Make OffscreenCanvas an EventTarget (Closed)
Patch Set: keep a Member<ExecutionContext> in OffscreenCanvas 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/modules/offscreencanvas/OffscreenCanvasModules.cpp
diff --git a/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.cpp b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.cpp
index ea89f7b72db128a7c59a2b1d13142b45dcf12515..39fe0288cf4e6996f26cecf22cffc5a67839283a 100644
--- a/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.cpp
+++ b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.cpp
@@ -23,6 +23,7 @@ void OffscreenCanvasModules::getContext(
return;
}
+ offscreenCanvas.setExecutionContext(scriptState->getExecutionContext());
Justin Novosad 2016/11/14 19:45:08 Add a comment: OffscreenCanvas cannot be transferr
CanvasRenderingContext* context =
offscreenCanvas.getCanvasRenderingContext(scriptState, id, attributes);
if (context)

Powered by Google App Engine
This is Rietveld 408576698