mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
CanGc fixes in focusevent.rs oscillartornode.rs response.rs resizeobserversize.rs animationevent.rs (#33827)
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
This commit is contained in:
parent
92f12ff7cd
commit
fc0835bae3
12 changed files with 65 additions and 28 deletions
|
@ -49,9 +49,13 @@ impl ResizeObserverSize {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn new(window: &Window, size_impl: ResizeObserverSizeImpl) -> DomRoot<ResizeObserverSize> {
|
||||
pub fn new(
|
||||
window: &Window,
|
||||
size_impl: ResizeObserverSizeImpl,
|
||||
can_gc: CanGc,
|
||||
) -> DomRoot<ResizeObserverSize> {
|
||||
let observer_size = Box::new(ResizeObserverSize::new_inherited(size_impl));
|
||||
reflect_dom_object_with_proto(observer_size, window, None, CanGc::note())
|
||||
reflect_dom_object_with_proto(observer_size, window, None, can_gc)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue