Make TransitionEvent::new take a &Window

This commit is contained in:
Anthony Ramine 2017-01-21 01:11:57 +01:00
parent e3980e6235
commit 707f8f881e
2 changed files with 4 additions and 6 deletions

View file

@ -1624,7 +1624,7 @@ impl ScriptThread {
// FIXME: Handle pseudo-elements properly
pseudoElement: DOMString::new()
};
let transition_event = TransitionEvent::new(window.upcast(),
let transition_event = TransitionEvent::new(&window,
atom!("transitionend"),
&init);
transition_event.upcast::<Event>().fire(node.upcast());