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 7988132932fe846834bb47e377a9b4324e3b9a8f..9895e0ede6e0eecc168df6bfa626a2b2f85858ce 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" |
@@ -24,7 +25,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; |
} |