mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
CanGc fixes and checks in multiple files (#33836)
* CanGc fixes and checks in multiple files Signed-off-by: L Ashwin B <lashwinib@gmail.com> * CanGc fixes in storageevent.rs Signed-off-by: L Ashwin B <lashwinib@gmail.com> --------- Signed-off-by: L Ashwin B <lashwinib@gmail.com>
This commit is contained in:
parent
2f1862aaf5
commit
1e39787573
9 changed files with 74 additions and 59 deletions
|
@ -69,16 +69,14 @@ impl PopStateEvent {
|
|||
ev
|
||||
}
|
||||
|
||||
pub fn dispatch_jsval(target: &EventTarget, window: &Window, state: HandleValue) {
|
||||
let event = PopStateEvent::new(
|
||||
window,
|
||||
None,
|
||||
atom!("popstate"),
|
||||
false,
|
||||
false,
|
||||
state,
|
||||
CanGc::note(),
|
||||
);
|
||||
pub fn dispatch_jsval(
|
||||
target: &EventTarget,
|
||||
window: &Window,
|
||||
state: HandleValue,
|
||||
can_gc: CanGc,
|
||||
) {
|
||||
let event =
|
||||
PopStateEvent::new(window, None, atom!("popstate"), false, false, state, can_gc);
|
||||
event.upcast::<Event>().fire(target);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue