mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
CanGc fixes in components/script/dom (#33880)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
parent
72ff89620b
commit
cd7b66be58
12 changed files with 59 additions and 33 deletions
|
@ -297,7 +297,8 @@ impl XRSession {
|
|||
promise.resolve_native(&());
|
||||
}
|
||||
// Step 7
|
||||
let event = XRSessionEvent::new(&self.global(), atom!("end"), false, false, self);
|
||||
let event =
|
||||
XRSessionEvent::new(&self.global(), atom!("end"), false, false, self, can_gc);
|
||||
event.upcast::<Event>().fire(self.upcast());
|
||||
},
|
||||
XREvent::Select(input, kind, ty, frame) => {
|
||||
|
@ -360,6 +361,7 @@ impl XRSession {
|
|||
false,
|
||||
false,
|
||||
self,
|
||||
can_gc,
|
||||
);
|
||||
event.upcast::<Event>().fire(self.upcast());
|
||||
// The page may be visible again, dirty the layers
|
||||
|
@ -607,6 +609,7 @@ impl XRSession {
|
|||
false,
|
||||
false,
|
||||
self,
|
||||
CanGc::note(),
|
||||
);
|
||||
event.upcast::<Event>().fire(self.upcast());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue