diff options
Diffstat (limited to 'components/script/dom/canvasrenderingcontext2d.rs')
-rw-r--r-- | components/script/dom/canvasrenderingcontext2d.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/canvasrenderingcontext2d.rs b/components/script/dom/canvasrenderingcontext2d.rs index 44e2ea33966..cd02eb18f0e 100644 --- a/components/script/dom/canvasrenderingcontext2d.rs +++ b/components/script/dom/canvasrenderingcontext2d.rs @@ -326,7 +326,7 @@ impl LayoutCanvasRenderingContext2DHelpers for LayoutJS<CanvasRenderingContext2D impl<'a> CanvasRenderingContext2DMethods for JSRef<'a, CanvasRenderingContext2D> { // https://html.spec.whatwg.org/multipage/#dom-context-2d-canvas fn Canvas(self) -> Temporary<HTMLCanvasElement> { - Temporary::new(self.canvas) + Temporary::from_rooted(self.canvas) } // https://html.spec.whatwg.org/multipage/#dom-context-2d-save |