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

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

Issue 2821443002: Revert of Move ScriptState::GetExecutionContext (Part 5) (Closed)
Patch Set: Revert Created 3 years, 8 months 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 92e8b6d43f8908926bec7b28f28cfac0ff29477a..9b20958741b447c97f15dc2717d153017b566de9 100644
--- a/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.cpp
+++ b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.cpp
@@ -4,7 +4,6 @@
#include "modules/offscreencanvas/OffscreenCanvasModules.h"
-#include "core/dom/ExecutionContext.h"
#include "core/html/canvas/CanvasContextCreationAttributes.h"
#include "core/offscreencanvas/OffscreenCanvas.h"
#include "modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h"
@@ -26,7 +25,7 @@ void OffscreenCanvasModules::getContext(
// OffscreenCanvas cannot be transferred after getContext, so this execution
// context will always be the right one from here on.
- offscreen_canvas.SetExecutionContext(ExecutionContext::From(script_state));
+ offscreen_canvas.SetExecutionContext(script_state->GetExecutionContext());
CanvasRenderingContext* context =
offscreen_canvas.GetCanvasRenderingContext(script_state, id, attributes);
if (context)

Powered by Google App Engine
This is Rietveld 408576698