mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Pass a &GlobalScope to WebIDL static methods and constructors
This commit is contained in:
parent
1fd470889d
commit
19108aa330
56 changed files with 198 additions and 245 deletions
|
@ -4,7 +4,6 @@
|
|||
|
||||
use dom::bindings::codegen::Bindings::FileReaderSyncBinding;
|
||||
use dom::bindings::error::Fallible;
|
||||
use dom::bindings::global::GlobalRef;
|
||||
use dom::bindings::js::Root;
|
||||
use dom::bindings::reflector::reflect_dom_object;
|
||||
use dom::eventtarget::EventTarget;
|
||||
|
@ -27,7 +26,7 @@ impl FileReaderSync {
|
|||
global, FileReaderSyncBinding::Wrap)
|
||||
}
|
||||
|
||||
pub fn Constructor(global: GlobalRef) -> Fallible<Root<FileReaderSync>> {
|
||||
Ok(FileReaderSync::new(global.as_global_scope()))
|
||||
pub fn Constructor(global: &GlobalScope) -> Fallible<Root<FileReaderSync>> {
|
||||
Ok(FileReaderSync::new(global))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue