From c37a345dc9f4dda6ea29c42f96f6c7201c42cbac Mon Sep 17 00:00:00 2001 From: chansuke Date: Tue, 18 Sep 2018 23:24:15 +0900 Subject: Format script component --- components/script/dom/htmlhtmlelement.rs | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'components/script/dom/htmlhtmlelement.rs') diff --git a/components/script/dom/htmlhtmlelement.rs b/components/script/dom/htmlhtmlelement.rs index c5eb4e1fca5..f9fd18fd693 100644 --- a/components/script/dom/htmlhtmlelement.rs +++ b/components/script/dom/htmlhtmlelement.rs @@ -12,22 +12,30 @@ use html5ever::{LocalName, Prefix}; #[dom_struct] pub struct HTMLHtmlElement { - htmlelement: HTMLElement + htmlelement: HTMLElement, } impl HTMLHtmlElement { - fn new_inherited(localName: LocalName, prefix: Option, document: &Document) -> HTMLHtmlElement { + fn new_inherited( + localName: LocalName, + prefix: Option, + document: &Document, + ) -> HTMLHtmlElement { HTMLHtmlElement { - htmlelement: HTMLElement::new_inherited(localName, prefix, document) + htmlelement: HTMLElement::new_inherited(localName, prefix, document), } } #[allow(unrooted_must_root)] - pub fn new(localName: LocalName, - prefix: Option, - document: &Document) -> DomRoot { - Node::reflect_node(Box::new(HTMLHtmlElement::new_inherited(localName, prefix, document)), - document, - HTMLHtmlElementBinding::Wrap) + pub fn new( + localName: LocalName, + prefix: Option, + document: &Document, + ) -> DomRoot { + Node::reflect_node( + Box::new(HTMLHtmlElement::new_inherited(localName, prefix, document)), + document, + HTMLHtmlElementBinding::Wrap, + ) } } -- cgit v1.2.3