mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
Add AbortSignal support for event listeners (#39406)
Also fixes several issues with code generation when a dom type is part of a dictionary. Part of #34866 Fixes #39398 Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
parent
7abc813fc3
commit
02aab33987
9 changed files with 98 additions and 100 deletions
|
@ -107,6 +107,7 @@ impl MediaQueryListMethods<crate::DomTypeHolder> for MediaQueryList {
|
|||
parent: EventListenerOptions { capture: false },
|
||||
once: false,
|
||||
passive: None,
|
||||
signal: None,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
@ -115,8 +116,8 @@ impl MediaQueryListMethods<crate::DomTypeHolder> for MediaQueryList {
|
|||
fn RemoveListener(&self, listener: Option<Rc<EventListener>>) {
|
||||
self.upcast::<EventTarget>().remove_event_listener(
|
||||
DOMString::from_string("change".to_owned()),
|
||||
listener,
|
||||
EventListenerOptions { capture: false },
|
||||
&listener,
|
||||
&EventListenerOptions { capture: false },
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue