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 9895e0ede6e0eecc168df6bfa626a2b2f85858ce..7988132932fe846834bb47e377a9b4324e3b9a8f 100644 |
--- a/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.cpp |
+++ b/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.cpp |
@@ -4,7 +4,6 @@ |
#include "modules/canvas/HTMLCanvasElementModule.h" |
-#include "core/dom/DOMNodeIds.h" |
#include "core/html/canvas/CanvasContextCreationAttributes.h" |
#include "core/html/canvas/CanvasRenderingContext.h" |
@@ -25,7 +24,7 @@ |
return nullptr; |
} |
OffscreenCanvas* offscreenCanvas = OffscreenCanvas::create(canvas.width(), canvas.height()); |
- offscreenCanvas->setAssociatedCanvasId(DOMNodeIds::idForNode(&canvas)); |
+ offscreenCanvas->setAssociatedCanvas(&canvas); |
return offscreenCanvas; |
} |