diff options
author | chansuke <chansuke@georepublic.de> | 2018-09-18 23:24:15 +0900 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2018-09-19 17:40:47 -0400 |
commit | c37a345dc9f4dda6ea29c42f96f6c7201c42cbac (patch) | |
tree | 1f05b49bac02318455a59d5b143c186fd872bdb9 /components/script/dom/htmldivelement.rs | |
parent | 2ca7a134736bb4759ff209c1bc0b6dc3cc1984c9 (diff) | |
download | servo-c37a345dc9f4dda6ea29c42f96f6c7201c42cbac.tar.gz servo-c37a345dc9f4dda6ea29c42f96f6c7201c42cbac.zip |
Format script component
Diffstat (limited to 'components/script/dom/htmldivelement.rs')
-rw-r--r-- | components/script/dom/htmldivelement.rs | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/components/script/dom/htmldivelement.rs b/components/script/dom/htmldivelement.rs index 48fd3afb951..3de1af4e568 100644 --- a/components/script/dom/htmldivelement.rs +++ b/components/script/dom/htmldivelement.rs @@ -13,25 +13,31 @@ use html5ever::{LocalName, Prefix}; #[dom_struct] pub struct HTMLDivElement { - htmlelement: HTMLElement + htmlelement: HTMLElement, } impl HTMLDivElement { - fn new_inherited(local_name: LocalName, - prefix: Option<Prefix>, - document: &Document) -> HTMLDivElement { + fn new_inherited( + local_name: LocalName, + prefix: Option<Prefix>, + document: &Document, + ) -> HTMLDivElement { HTMLDivElement { - htmlelement: HTMLElement::new_inherited(local_name, prefix, document) + htmlelement: HTMLElement::new_inherited(local_name, prefix, document), } } #[allow(unrooted_must_root)] - pub fn new(local_name: LocalName, - prefix: Option<Prefix>, - document: &Document) -> DomRoot<HTMLDivElement> { - Node::reflect_node(Box::new(HTMLDivElement::new_inherited(local_name, prefix, document)), - document, - HTMLDivElementBinding::Wrap) + pub fn new( + local_name: LocalName, + prefix: Option<Prefix>, + document: &Document, + ) -> DomRoot<HTMLDivElement> { + Node::reflect_node( + Box::new(HTMLDivElement::new_inherited(local_name, prefix, document)), + document, + HTMLDivElementBinding::Wrap, + ) } } |