mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Rename GlobalRoot::root_ref() to GlobalRoot::r() for consistency.
This commit is contained in:
parent
d09d245ee1
commit
6077ed0ce8
9 changed files with 23 additions and 23 deletions
|
@ -116,6 +116,6 @@ impl PrivateFormDataHelpers for FormData {
|
|||
let global = self.global.root();
|
||||
let f: Option<JSRef<File>> = FileCast::to_ref(value);
|
||||
let name = filename.unwrap_or(f.map(|inner| inner.name().clone()).unwrap_or("blob".into_string()));
|
||||
File::new(&global.root_ref(), value, name)
|
||||
File::new(&global.r(), value, name)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue