aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpuvalidationerror.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/gpuvalidationerror.rs')
-rw-r--r--components/script/dom/gpuvalidationerror.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/components/script/dom/gpuvalidationerror.rs b/components/script/dom/gpuvalidationerror.rs
index ebabee325f8..5fa09c2e182 100644
--- a/components/script/dom/gpuvalidationerror.rs
+++ b/components/script/dom/gpuvalidationerror.rs
@@ -10,6 +10,7 @@ use crate::dom::bindings::reflector::reflect_dom_object_with_proto;
use crate::dom::bindings::root::DomRoot;
use crate::dom::bindings::str::DOMString;
use crate::dom::globalscope::GlobalScope;
+use crate::script_runtime::CanGc;
#[dom_struct]
pub struct GPUValidationError {
@@ -27,8 +28,14 @@ impl GPUValidationError {
global: &GlobalScope,
proto: Option<HandleObject>,
message: DOMString,
+ can_gc: CanGc,
) -> DomRoot<Self> {
- reflect_dom_object_with_proto(Box::new(Self::new_inherited(message)), global, proto)
+ reflect_dom_object_with_proto(
+ Box::new(Self::new_inherited(message)),
+ global,
+ proto,
+ can_gc,
+ )
}
/// <https://gpuweb.github.io/gpuweb/#dom-gpuvalidationerror-gpuvalidationerror>
@@ -36,8 +43,9 @@ impl GPUValidationError {
pub fn Constructor(
global: &GlobalScope,
proto: Option<HandleObject>,
+ can_gc: CanGc,
message: DOMString,
) -> DomRoot<Self> {
- Self::new_with_proto(global, proto, message)
+ Self::new_with_proto(global, proto, message, can_gc)
}
}