diff options
author | chickenleaf <lashwinib@gmail.com> | 2024-10-15 10:00:48 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-15 04:30:48 +0000 |
commit | 1e39787573e180801ed70c3f708ebb22631eeeb9 (patch) | |
tree | c2acdf18ac3cdee828cc86d1bcf7e8963698eeb9 /components/script/dom/document.rs | |
parent | 2f1862aaf5771c3a8416d524c4a6dca1cac4d99e (diff) | |
download | servo-1e39787573e180801ed70c3f708ebb22631eeeb9.tar.gz servo-1e39787573e180801ed70c3f708ebb22631eeeb9.zip |
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>
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r-- | components/script/dom/document.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index e9b97d1c1a4..bc0f8c1b8e6 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -4645,6 +4645,7 @@ impl DocumentMethods for Document { "storageevent" => Ok(DomRoot::upcast(StorageEvent::new_uninitialized( &self.window, "".into(), + can_gc, ))), "touchevent" => Ok(DomRoot::upcast(TouchEvent::new_uninitialized( &self.window, @@ -4652,7 +4653,10 @@ impl DocumentMethods for Document { &TouchList::new(&self.window, &[]), &TouchList::new(&self.window, &[]), ))), - "uievent" | "uievents" => Ok(DomRoot::upcast(UIEvent::new_uninitialized(&self.window))), + "uievent" | "uievents" => Ok(DomRoot::upcast(UIEvent::new_uninitialized( + &self.window, + can_gc, + ))), _ => Err(Error::NotSupported), } } |