aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webgpu/gpucompilationmessage.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webgpu/gpucompilationmessage.rs')
-rw-r--r--components/script/dom/webgpu/gpucompilationmessage.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/components/script/dom/webgpu/gpucompilationmessage.rs b/components/script/dom/webgpu/gpucompilationmessage.rs
index 057c3cedfed..1b10c12cf25 100644
--- a/components/script/dom/webgpu/gpucompilationmessage.rs
+++ b/components/script/dom/webgpu/gpucompilationmessage.rs
@@ -68,7 +68,11 @@ impl GPUCompilationMessage {
)
}
- pub(crate) fn from(global: &GlobalScope, info: ShaderCompilationInfo) -> DomRoot<Self> {
+ pub(crate) fn from(
+ global: &GlobalScope,
+ info: ShaderCompilationInfo,
+ can_gc: CanGc,
+ ) -> DomRoot<Self> {
GPUCompilationMessage::new(
global,
info.message.into(),
@@ -77,7 +81,7 @@ impl GPUCompilationMessage {
info.line_pos,
info.offset,
info.length,
- CanGc::note(),
+ can_gc,
)
}
}