aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/rtcrtptransceiver.rs
diff options
context:
space:
mode:
authorAuguste Baum <52001167+augustebaum@users.noreply.github.com>2025-02-21 18:35:17 +0100
committerGitHub <noreply@github.com>2025-02-21 17:35:17 +0000
commitca1f0486ba4a70eba17d42f75cdc7617deb47cc1 (patch)
treeafa11fabebf70752a94532cab24e5f5feff3b508 /components/script/dom/rtcrtptransceiver.rs
parent085cd981aa61cd74d2ec017d41248a0feb5c99f6 (diff)
downloadservo-ca1f0486ba4a70eba17d42f75cdc7617deb47cc1.tar.gz
servo-ca1f0486ba4a70eba17d42f75cdc7617deb47cc1.zip
refactor: propagate CanGc arguments through callers (#35565)
Signed-off-by: Auguste Baum <auguste.apple@gmail.com>
Diffstat (limited to 'components/script/dom/rtcrtptransceiver.rs')
-rw-r--r--components/script/dom/rtcrtptransceiver.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/components/script/dom/rtcrtptransceiver.rs b/components/script/dom/rtcrtptransceiver.rs
index aa70913a3d5..59aa492a7e1 100644
--- a/components/script/dom/rtcrtptransceiver.rs
+++ b/components/script/dom/rtcrtptransceiver.rs
@@ -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,
)