mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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>
This commit is contained in:
parent
1bf68567b8
commit
ebfea9b352
22 changed files with 170 additions and 129 deletions
|
@ -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,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue