mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01: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
|
@ -500,8 +500,8 @@ impl EventTarget {
|
|||
bubbles: EventBubbles,
|
||||
cancelable: EventCancelable)
|
||||
-> Root<Event> {
|
||||
let global = self.global();
|
||||
let event = Event::new(global.r(), Atom::from(name), bubbles, cancelable);
|
||||
let event = Event::new(
|
||||
self.global().r().as_global_scope(), Atom::from(name), bubbles, cancelable);
|
||||
|
||||
event.fire(self);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue