mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Introduce Reflectable::global_scope
This commit is contained in:
parent
27f100b1d4
commit
ae6af5172b
30 changed files with 116 additions and 120 deletions
|
@ -500,8 +500,7 @@ impl EventTarget {
|
|||
bubbles: EventBubbles,
|
||||
cancelable: EventCancelable)
|
||||
-> Root<Event> {
|
||||
let event = Event::new(
|
||||
self.global().r().as_global_scope(), Atom::from(name), bubbles, cancelable);
|
||||
let event = Event::new(&self.global_scope(), Atom::from(name), bubbles, cancelable);
|
||||
|
||||
event.fire(self);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue