aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglsync.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webglsync.rs')
-rw-r--r--components/script/dom/webglsync.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/webglsync.rs b/components/script/dom/webglsync.rs
index c060c78feb8..3a73a618c92 100644
--- a/components/script/dom/webglsync.rs
+++ b/components/script/dom/webglsync.rs
@@ -37,7 +37,7 @@ impl WebGLSync {
}
}
- pub(crate) fn new(context: &WebGLRenderingContext) -> DomRoot<Self> {
+ pub(crate) fn new(context: &WebGLRenderingContext, can_gc: CanGc) -> DomRoot<Self> {
let (sender, receiver) = webgl_channel().unwrap();
context.send_command(WebGLCommand::FenceSync(sender));
let sync_id = receiver.recv().unwrap();
@@ -45,7 +45,7 @@ impl WebGLSync {
reflect_dom_object(
Box::new(WebGLSync::new_inherited(context, sync_id)),
&*context.global(),
- CanGc::note(),
+ can_gc,
)
}
}