mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
CanGc fixes from EventTarget::fire_event (#33985)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
parent
bb4932026c
commit
ea875f0a51
35 changed files with 155 additions and 115 deletions
|
@ -15,6 +15,7 @@ use crate::dom::bindings::str::DOMString;
|
|||
use crate::dom::eventtarget::EventTarget;
|
||||
use crate::dom::htmlmediaelement::HTMLMediaElement;
|
||||
use crate::dom::window::Window;
|
||||
use crate::script_runtime::CanGc;
|
||||
use crate::task_source::TaskSource;
|
||||
|
||||
#[dom_struct]
|
||||
|
@ -96,7 +97,7 @@ impl AudioTrackList {
|
|||
let _ = source.queue_with_canceller(
|
||||
task!(media_track_change: move || {
|
||||
let this = this.root();
|
||||
this.upcast::<EventTarget>().fire_event(atom!("change"));
|
||||
this.upcast::<EventTarget>().fire_event(atom!("change"), CanGc::note());
|
||||
}),
|
||||
&canceller,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue