mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +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
|
@ -8,7 +8,6 @@ use dom::bindings::cell::DOMRefCell;
|
|||
use dom::bindings::codegen::Bindings::TestBindingPairIterableBinding;
|
||||
use dom::bindings::codegen::Bindings::TestBindingPairIterableBinding::TestBindingPairIterableMethods;
|
||||
use dom::bindings::error::Fallible;
|
||||
use dom::bindings::global::GlobalRef;
|
||||
use dom::bindings::iterable::Iterable;
|
||||
use dom::bindings::js::Root;
|
||||
use dom::bindings::reflector::{Reflector, reflect_dom_object};
|
||||
|
@ -43,8 +42,8 @@ impl TestBindingPairIterable {
|
|||
}, global, TestBindingPairIterableBinding::TestBindingPairIterableWrap)
|
||||
}
|
||||
|
||||
pub fn Constructor(global: GlobalRef) -> Fallible<Root<TestBindingPairIterable>> {
|
||||
Ok(TestBindingPairIterable::new(global.as_global_scope()))
|
||||
pub fn Constructor(global: &GlobalScope) -> Fallible<Root<TestBindingPairIterable>> {
|
||||
Ok(TestBindingPairIterable::new(global))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue