aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webgpu/gpusupportedlimits.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webgpu/gpusupportedlimits.rs')
-rw-r--r--components/script/dom/webgpu/gpusupportedlimits.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/webgpu/gpusupportedlimits.rs b/components/script/dom/webgpu/gpusupportedlimits.rs
index 15f1172da18..8f25526eae1 100644
--- a/components/script/dom/webgpu/gpusupportedlimits.rs
+++ b/components/script/dom/webgpu/gpusupportedlimits.rs
@@ -11,6 +11,7 @@ use crate::dom::bindings::codegen::Bindings::WebGPUBinding::GPUSupportedLimits_B
use crate::dom::bindings::reflector::{reflect_dom_object, Reflector};
use crate::dom::bindings::root::DomRoot;
use crate::dom::globalscope::GlobalScope;
+use crate::script_runtime::CanGc;
#[dom_struct]
pub struct GPUSupportedLimits {
@@ -29,7 +30,7 @@ impl GPUSupportedLimits {
}
pub fn new(global: &GlobalScope, limits: Limits) -> DomRoot<Self> {
- reflect_dom_object(Box::new(Self::new_inherited(limits)), global)
+ reflect_dom_object(Box::new(Self::new_inherited(limits)), global, CanGc::note())
}
}