mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Make reflect_dom_object take a &GlobalScope
This commit is contained in:
parent
093b189b48
commit
fcb59d3057
132 changed files with 488 additions and 407 deletions
|
@ -604,7 +604,7 @@ impl HTMLScriptElement {
|
|||
cancelable: EventCancelable) -> EventStatus {
|
||||
let window = window_from_node(self);
|
||||
let window = window.r();
|
||||
let event = Event::new(GlobalRef::Window(window), type_, bubbles, cancelable);
|
||||
let event = Event::new(window.upcast(), type_, bubbles, cancelable);
|
||||
event.fire(self.upcast())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue