mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Propagate CanGc
arguments through callers in constructors (#35541)
Signed-off-by: Auguste Baum <auguste.apple@gmail.com>
This commit is contained in:
parent
5465bfc2af
commit
863d2ce871
260 changed files with 986 additions and 603 deletions
|
@ -45,7 +45,7 @@ impl XRBoundedReferenceSpace {
|
|||
can_gc: CanGc,
|
||||
) -> DomRoot<XRBoundedReferenceSpace> {
|
||||
let offset = XRRigidTransform::identity(global, can_gc);
|
||||
Self::new_offset(global, session, &offset)
|
||||
Self::new_offset(global, session, &offset, can_gc)
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
|
@ -53,11 +53,12 @@ impl XRBoundedReferenceSpace {
|
|||
global: &GlobalScope,
|
||||
session: &XRSession,
|
||||
offset: &XRRigidTransform,
|
||||
can_gc: CanGc,
|
||||
) -> DomRoot<XRBoundedReferenceSpace> {
|
||||
reflect_dom_object(
|
||||
Box::new(XRBoundedReferenceSpace::new_inherited(session, offset)),
|
||||
global,
|
||||
CanGc::note(),
|
||||
can_gc,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue