More CanGc fixes (#33888)

Signed-off-by: L Ashwin B <lashwinib@gmail.com>
This commit is contained in:
chickenleaf 2024-10-18 01:06:42 +05:30 committed by GitHub
parent 720d632170
commit 9c893c7f4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 102 additions and 58 deletions

View file

@ -65,6 +65,7 @@ impl ResizeObserverEntry {
border_box_size: &[&ResizeObserverSize],
content_box_size: &[&ResizeObserverSize],
device_pixel_content_box_size: &[&ResizeObserverSize],
can_gc: CanGc,
) -> DomRoot<ResizeObserverEntry> {
let entry = Box::new(ResizeObserverEntry::new_inherited(
target,
@ -73,7 +74,7 @@ impl ResizeObserverEntry {
content_box_size,
device_pixel_content_box_size,
));
reflect_dom_object_with_proto(entry, window, None, CanGc::note())
reflect_dom_object_with_proto(entry, window, None, can_gc)
}
}