aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/submitevent.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/submitevent.rs')
-rw-r--r--components/script/dom/submitevent.rs11
1 files changed, 2 insertions, 9 deletions
diff --git a/components/script/dom/submitevent.rs b/components/script/dom/submitevent.rs
index 8cb39f5f0df..ea95805cbf5 100644
--- a/components/script/dom/submitevent.rs
+++ b/components/script/dom/submitevent.rs
@@ -40,16 +40,9 @@ impl SubmitEvent {
bubbles: bool,
cancelable: bool,
submitter: Option<DomRoot<HTMLElement>>,
+ can_gc: CanGc,
) -> DomRoot<SubmitEvent> {
- Self::new_with_proto(
- global,
- None,
- type_,
- bubbles,
- cancelable,
- submitter,
- CanGc::note(),
- )
+ Self::new_with_proto(global, None, type_, bubbles, cancelable, submitter, can_gc)
}
fn new_with_proto(