mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
refactor: propagate CanGc arguments through callers (#35565)
Signed-off-by: Auguste Baum <auguste.apple@gmail.com>
This commit is contained in:
parent
085cd981aa
commit
ca1f0486ba
11 changed files with 62 additions and 42 deletions
|
@ -23,8 +23,12 @@ pub(crate) struct RTCRtpTransceiver {
|
|||
}
|
||||
|
||||
impl RTCRtpTransceiver {
|
||||
fn new_inherited(global: &GlobalScope, direction: RTCRtpTransceiverDirection) -> Self {
|
||||
let sender = RTCRtpSender::new(global, CanGc::note());
|
||||
fn new_inherited(
|
||||
global: &GlobalScope,
|
||||
direction: RTCRtpTransceiverDirection,
|
||||
can_gc: CanGc,
|
||||
) -> Self {
|
||||
let sender = RTCRtpSender::new(global, can_gc);
|
||||
Self {
|
||||
reflector_: Reflector::new(),
|
||||
direction: Cell::new(direction),
|
||||
|
@ -38,7 +42,7 @@ impl RTCRtpTransceiver {
|
|||
can_gc: CanGc,
|
||||
) -> DomRoot<Self> {
|
||||
reflect_dom_object(
|
||||
Box::new(Self::new_inherited(global, direction)),
|
||||
Box::new(Self::new_inherited(global, direction, can_gc)),
|
||||
global,
|
||||
can_gc,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue