mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Rustfmt some of script.
This commit is contained in:
parent
ceb72e54e4
commit
0c61be7a57
50 changed files with 1499 additions and 885 deletions
|
@ -40,7 +40,8 @@ impl CustomEvent {
|
|||
type_: DOMString,
|
||||
bubbles: bool,
|
||||
cancelable: bool,
|
||||
detail: HandleValue) -> Root<CustomEvent> {
|
||||
detail: HandleValue)
|
||||
-> Root<CustomEvent> {
|
||||
let ev = CustomEvent::new_uninitialized(global);
|
||||
ev.InitCustomEvent(global.get_cx(), type_, bubbles, cancelable, detail);
|
||||
ev
|
||||
|
@ -48,7 +49,8 @@ impl CustomEvent {
|
|||
#[allow(unsafe_code)]
|
||||
pub fn Constructor(global: GlobalRef,
|
||||
type_: DOMString,
|
||||
init: &CustomEventBinding::CustomEventInit) -> Fallible<Root<CustomEvent>>{
|
||||
init: &CustomEventBinding::CustomEventInit)
|
||||
-> Fallible<Root<CustomEvent>> {
|
||||
Ok(CustomEvent::new(global,
|
||||
type_,
|
||||
init.parent.bubbles,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue