mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Introduce GlobalScope::as_window
This commit is contained in:
parent
2f54022761
commit
766010379e
22 changed files with 30 additions and 43 deletions
|
@ -59,7 +59,8 @@ impl FocusEvent {
|
|||
init: &FocusEventBinding::FocusEventInit) -> Fallible<Root<FocusEvent>> {
|
||||
let bubbles = EventBubbles::from(init.parent.parent.bubbles);
|
||||
let cancelable = EventCancelable::from(init.parent.parent.cancelable);
|
||||
let event = FocusEvent::new(global.as_window(), type_,
|
||||
let event = FocusEvent::new(global.as_global_scope().as_window(),
|
||||
type_,
|
||||
bubbles,
|
||||
cancelable,
|
||||
init.parent.view.r(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue