mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
cangc fixes in several files + event.rs + rtcpeerconnection.rs (#34002)
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
This commit is contained in:
parent
3b5dc069ae
commit
7ad8822d94
37 changed files with 166 additions and 132 deletions
|
@ -119,7 +119,7 @@ impl RTCDataChannel {
|
|||
EventCancelable::NotCancelable,
|
||||
can_gc,
|
||||
);
|
||||
event.upcast::<Event>().fire(self.upcast());
|
||||
event.upcast::<Event>().fire(self.upcast(), can_gc);
|
||||
}
|
||||
|
||||
pub fn on_close(&self, can_gc: CanGc) {
|
||||
|
@ -130,7 +130,7 @@ impl RTCDataChannel {
|
|||
EventCancelable::NotCancelable,
|
||||
can_gc,
|
||||
);
|
||||
event.upcast::<Event>().fire(self.upcast());
|
||||
event.upcast::<Event>().fire(self.upcast(), can_gc);
|
||||
|
||||
self.peer_connection
|
||||
.unregister_data_channel(&self.servo_media_id);
|
||||
|
@ -153,7 +153,7 @@ impl RTCDataChannel {
|
|||
};
|
||||
let error = RTCError::new(&global, &init, message, can_gc);
|
||||
let event = RTCErrorEvent::new(&global, atom!("error"), false, false, &error, can_gc);
|
||||
event.upcast::<Event>().fire(self.upcast());
|
||||
event.upcast::<Event>().fire(self.upcast(), can_gc);
|
||||
}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
|
@ -213,7 +213,7 @@ impl RTCDataChannel {
|
|||
EventCancelable::NotCancelable,
|
||||
can_gc,
|
||||
);
|
||||
event.upcast::<Event>().fire(self.upcast());
|
||||
event.upcast::<Event>().fire(self.upcast(), can_gc);
|
||||
};
|
||||
self.ready_state.set(state.into());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue