mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Make TransitionEvent::new take a &Window
This commit is contained in:
parent
e3980e6235
commit
707f8f881e
2 changed files with 4 additions and 6 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue