diff options
Diffstat (limited to 'components/script/dom/vttregion.rs')
-rw-r--r-- | components/script/dom/vttregion.rs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/components/script/dom/vttregion.rs b/components/script/dom/vttregion.rs index 87482b8b97e..c04737f64aa 100644 --- a/components/script/dom/vttregion.rs +++ b/components/script/dom/vttregion.rs @@ -16,6 +16,7 @@ use crate::dom::bindings::root::DomRoot; use crate::dom::bindings::str::DOMString; use crate::dom::globalscope::GlobalScope; use crate::dom::window::Window; +use crate::script_runtime::CanGc; #[dom_struct] pub struct VTTRegion { @@ -45,13 +46,17 @@ impl VTTRegion { } } - fn new(global: &GlobalScope, proto: Option<HandleObject>) -> DomRoot<Self> { - reflect_dom_object_with_proto(Box::new(Self::new_inherited()), global, proto) + fn new(global: &GlobalScope, proto: Option<HandleObject>, can_gc: CanGc) -> DomRoot<Self> { + reflect_dom_object_with_proto(Box::new(Self::new_inherited()), global, proto, can_gc) } #[allow(non_snake_case)] - pub fn Constructor(window: &Window, proto: Option<HandleObject>) -> Fallible<DomRoot<Self>> { - Ok(VTTRegion::new(&window.global(), proto)) + pub fn Constructor( + window: &Window, + proto: Option<HandleObject>, + can_gc: CanGc, + ) -> Fallible<DomRoot<Self>> { + Ok(VTTRegion::new(&window.global(), proto, can_gc)) } } |