aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/paintrenderingcontext2d.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/paintrenderingcontext2d.rs')
-rw-r--r--components/script/dom/paintrenderingcontext2d.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/paintrenderingcontext2d.rs b/components/script/dom/paintrenderingcontext2d.rs
index b5c47b2c08f..69492e2d685 100644
--- a/components/script/dom/paintrenderingcontext2d.rs
+++ b/components/script/dom/paintrenderingcontext2d.rs
@@ -53,7 +53,7 @@ impl PaintRenderingContext2D {
}
pub fn new(global: &PaintWorkletGlobalScope) -> DomRoot<PaintRenderingContext2D> {
- reflect_dom_object(box PaintRenderingContext2D::new_inherited(global),
+ reflect_dom_object(Box::new(PaintRenderingContext2D::new_inherited(global)),
global,
PaintRenderingContext2DBinding::Wrap)
}