Make reflect_dom_object take a &GlobalScope

This commit is contained in:
Anthony Ramine 2016-09-27 13:16:41 +02:00
parent 093b189b48
commit fcb59d3057
132 changed files with 488 additions and 407 deletions

View file

@ -302,8 +302,7 @@ impl ServiceWorkerGlobalScope {
}
fn dispatch_activate(&self) {
let global = GlobalRef::Worker(self.upcast::<WorkerGlobalScope>());
let event = ExtendableEvent::new(global, atom!("activate"), false, false);
let event = ExtendableEvent::new(self.upcast(), atom!("activate"), false, false);
let event = (&*event).upcast::<Event>();
self.upcast::<EventTarget>().dispatch_event(event);
}