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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp

Issue 1928043002: Add drawImage() originClean() getSecurityOrigin() to OffscreenCanvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp
index 94a19886750e5a04748ff31794f0f82474640b66..ff381edc4ba98c0b04f460f9cd2aeaec3c02e9d2 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp
@@ -2280,7 +2280,8 @@ bool ScriptValueDeserializer::tryGetTransferredSharedArrayBuffer(uint32_t index,
bool ScriptValueDeserializer::tryGetTransferredOffscreenCanvas(uint32_t index, uint32_t width, uint32_t height, uint32_t id, v8::Local<v8::Value>* object)
{
- OffscreenCanvas* offscreenCanvas = OffscreenCanvas::create(width, height);
+ ExecutionContext* executionContext = ScriptState::current(v8::Isolate::GetCurrent())->getExecutionContext();
haraken 2016/04/28 17:40:41 Use m_reader.scriptState() instead. (Please don't
xlai (Olivia) 2016/04/28 18:38:16 Oops I thought ScriptState::current() can be used
+ OffscreenCanvas* offscreenCanvas = OffscreenCanvas::create(executionContext, width, height);
offscreenCanvas->setAssociatedCanvasId(id);
*object = toV8(offscreenCanvas, m_reader.getScriptState());
if ((*object).IsEmpty())
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698