Formatting.

This commit is contained in:
Josh Matthews 2023-05-28 23:25:41 -04:00
parent dbff26bce0
commit 0e8ac3fdac
81 changed files with 588 additions and 206 deletions

View file

@ -50,7 +50,11 @@ impl TransitionEvent {
type_: Atom,
init: &TransitionEventInit,
) -> DomRoot<TransitionEvent> {
let ev = reflect_dom_object2(Box::new(TransitionEvent::new_inherited(init)), window, proto);
let ev = reflect_dom_object2(
Box::new(TransitionEvent::new_inherited(init)),
window,
proto,
);
{
let event = ev.upcast::<Event>();
event.init_event(type_, init.parent.bubbles, init.parent.cancelable);
@ -65,7 +69,12 @@ impl TransitionEvent {
type_: DOMString,
init: &TransitionEventInit,
) -> Fallible<DomRoot<TransitionEvent>> {
Ok(TransitionEvent::new_with_proto(window, proto, Atom::from(type_), init))
Ok(TransitionEvent::new_with_proto(
window,
proto,
Atom::from(type_),
init,
))
}
}