mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Introduce GlobalScope::as_window
This commit is contained in:
parent
2f54022761
commit
766010379e
22 changed files with 30 additions and 43 deletions
|
@ -65,8 +65,7 @@ impl HTMLFormControlsCollectionMethods for HTMLFormControlsCollection {
|
|||
// Step 4-5
|
||||
let once = iter::once(Root::upcast::<Node>(elem));
|
||||
let list = once.chain(peekable.map(Root::upcast));
|
||||
let global = self.global();
|
||||
let global = global.r();
|
||||
let global = self.global_scope();
|
||||
let window = global.as_window();
|
||||
Some(RadioNodeListOrElement::RadioNodeList(RadioNodeList::new_simple_list(window, list)))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue