aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xrsession.rs
diff options
context:
space:
mode:
authorchickenleaf <lashwinib@gmail.com>2024-10-25 18:14:15 +0530
committerGitHub <noreply@github.com>2024-10-25 12:44:15 +0000
commit7ad8822d94f22969af4ebe1130a0050e78fbc21b (patch)
treef7f49b0ab4815ec46ddbb54cdff679657db0ff45 /components/script/dom/xrsession.rs
parent3b5dc069ae338ebf373471e32874ea8f4ba3ade3 (diff)
downloadservo-7ad8822d94f22969af4ebe1130a0050e78fbc21b.tar.gz
servo-7ad8822d94f22969af4ebe1130a0050e78fbc21b.zip
cangc fixes in several files + event.rs + rtcpeerconnection.rs (#34002)
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
Diffstat (limited to 'components/script/dom/xrsession.rs')
-rw-r--r--components/script/dom/xrsession.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/components/script/dom/xrsession.rs b/components/script/dom/xrsession.rs
index fef36e2171b..85a7ec7ae41 100644
--- a/components/script/dom/xrsession.rs
+++ b/components/script/dom/xrsession.rs
@@ -299,7 +299,7 @@ impl XRSession {
// Step 7
let event =
XRSessionEvent::new(&self.global(), atom!("end"), false, false, self, can_gc);
- event.upcast::<Event>().fire(self.upcast());
+ event.upcast::<Event>().fire(self.upcast(), can_gc);
},
XREvent::Select(input, kind, ty, frame) => {
use servo_atoms::Atom;
@@ -323,7 +323,7 @@ impl XRSession {
&source,
can_gc,
);
- event.upcast::<Event>().fire(self.upcast());
+ event.upcast::<Event>().fire(self.upcast(), can_gc);
} else {
if ty == SelectEvent::Select {
let event = XRInputSourceEvent::new(
@@ -335,7 +335,7 @@ impl XRSession {
&source,
can_gc,
);
- event.upcast::<Event>().fire(self.upcast());
+ event.upcast::<Event>().fire(self.upcast(), can_gc);
}
let event = XRInputSourceEvent::new(
&self.global(),
@@ -346,7 +346,7 @@ impl XRSession {
&source,
can_gc,
);
- event.upcast::<Event>().fire(self.upcast());
+ event.upcast::<Event>().fire(self.upcast(), can_gc);
}
frame.set_active(false);
}
@@ -366,7 +366,7 @@ impl XRSession {
self,
can_gc,
);
- event.upcast::<Event>().fire(self.upcast());
+ event.upcast::<Event>().fire(self.upcast(), can_gc);
// The page may be visible again, dirty the layers
// This also wakes up the event loop if necessary
self.dirty_layers();
@@ -411,7 +411,7 @@ impl XRSession {
Some(&*offset),
can_gc,
);
- event.upcast::<Event>().fire(space.upcast());
+ event.upcast::<Event>().fire(space.upcast(), can_gc);
});
},
}
@@ -615,7 +615,7 @@ impl XRSession {
self,
can_gc,
);
- event.upcast::<Event>().fire(self.upcast());
+ event.upcast::<Event>().fire(self.upcast(), can_gc);
}
}