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

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

Issue 2490443002: Make OffscreenCanvas an EventTarget (Closed)
Patch Set: pass API layout tests 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..b560b2da77c481042eee8f56995a85b93b0deaf6 100644
--- a/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.cpp
+++ b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.cpp
@@ -23,6 +23,9 @@ void OffscreenCanvasModules::getContext(
return;
}
+ // OffscreenCanvas cannot be transferred after getContext, so this execution
+ // context will always be the right one from here on.
+ offscreenCanvas.setExecutionContext(scriptState->getExecutionContext());
CanvasRenderingContext* context =
offscreenCanvas.getCanvasRenderingContext(scriptState, id, attributes);
if (context)

Powered by Google App Engine
This is Rietveld 408576698