Remove the global argument to EventTarget::{fire_event, fire_simple_event}.

This commit is contained in:
Ms2ger 2016-02-08 19:21:47 +01:00
parent 4c4df37a12
commit 5317af1e19
9 changed files with 30 additions and 45 deletions

View file

@ -210,10 +210,10 @@ impl HTMLIFrameElement {
// TODO Step 3 - set child document `mut iframe load` flag
// Step 4
let window = window_from_node(self);
self.upcast::<EventTarget>().fire_simple_event("load", GlobalRef::Window(window.r()));
self.upcast::<EventTarget>().fire_simple_event("load");
// TODO Step 5 - unset child document `mut iframe load` flag
let window = window_from_node(self);
window.reflow(ReflowGoal::ForDisplay,
ReflowQueryType::NoQuery,
ReflowReason::IFrameLoadEvent);