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

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

Issue 2493673002: Synchronize OffscreenCanvas content with the placeholder canvas (Closed)
Patch Set: fix obsolete test 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/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp b/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp
index 62c40201544db510fa70ea2d94d29978c9e683f7..7283ab21a2e1bbef24a88bd562d99cd2ae032c78 100644
--- a/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp
@@ -243,7 +243,7 @@ ScriptWrappable* V8ScriptValueDeserializer::readDOMObject(
!readUint64(&nonceHigh) || !readUint64(&nonceLow))
return nullptr;
OffscreenCanvas* canvas = OffscreenCanvas::create(width, height);
- canvas->setAssociatedCanvasId(canvasId);
+ canvas->setPlaceholderCanvasId(canvasId);
canvas->setSurfaceId(clientId, sinkId, localId, nonceHigh, nonceLow);
return canvas;
}

Powered by Google App Engine
This is Rietveld 408576698