Index: third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.cpp |
diff --git a/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.cpp b/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.cpp |
index 2e312f385da78fb0fd4b2ee875b69140154efb2a..c3f2fb7a5865a2609eb60ff155128ed618af731b 100644 |
--- a/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.cpp |
+++ b/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.cpp |
@@ -4,6 +4,7 @@ |
#include "modules/canvas/HTMLCanvasElementModule.h" |
+#include "core/dom/DOMNodeIds.h" |
#include "core/html/canvas/CanvasContextCreationAttributes.h" |
#include "core/html/canvas/CanvasRenderingContext.h" |
#include "core/offscreencanvas/OffscreenCanvas.h" |
@@ -25,7 +26,7 @@ OffscreenCanvas* HTMLCanvasElementModule::transferControlToOffscreen(HTMLCanvasE |
return nullptr; |
} |
OffscreenCanvas* offscreenCanvas = OffscreenCanvas::create(canvas.width(), canvas.height()); |
- offscreenCanvas->setAssociatedCanvas(&canvas); |
+ offscreenCanvas->setAssociatedCanvasId(DOMNodeIds::idForNode(&canvas)); |
return offscreenCanvas; |
} |