diff options
author | chickenleaf <lashwinib@gmail.com> | 2024-10-22 03:02:22 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-21 21:32:22 +0000 |
commit | ebfea9b352ef0ec00ad5213055392668e841a0e9 (patch) | |
tree | 43baab7b7e7a4bd6f1a8111bfb8fe598aeb2cf87 /components/script/dom/file.rs | |
parent | 1bf68567b8608d87e1817066f1dacb27edc5602a (diff) | |
download | servo-ebfea9b352ef0ec00ad5213055392668e841a0e9.tar.gz servo-ebfea9b352ef0ec00ad5213055392668e841a0e9.zip |
CanGc fixes in several files (#33958)
* few cangc fixes
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
* few cangc fixes
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
---------
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
Diffstat (limited to 'components/script/dom/file.rs')
-rw-r--r-- | components/script/dom/file.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/components/script/dom/file.rs b/components/script/dom/file.rs index 587dae4d81a..21127331954 100644 --- a/components/script/dom/file.rs +++ b/components/script/dom/file.rs @@ -46,8 +46,9 @@ impl File { blob_impl: BlobImpl, name: DOMString, modified: Option<SystemTime>, + can_gc: CanGc, ) -> DomRoot<File> { - Self::new_with_proto(global, None, blob_impl, name, modified, CanGc::note()) + Self::new_with_proto(global, None, blob_impl, name, modified, can_gc) } #[allow(crown::unrooted_must_root)] @@ -70,7 +71,11 @@ impl File { } // Construct from selected file message from file manager thread - pub fn new_from_selected(window: &Window, selected: SelectedFile) -> DomRoot<File> { + pub fn new_from_selected( + window: &Window, + selected: SelectedFile, + can_gc: CanGc, + ) -> DomRoot<File> { let name = DOMString::from( selected .filename @@ -88,6 +93,7 @@ impl File { ), name, Some(selected.modified), + can_gc, ) } |