aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlparagraphelement.rs
diff options
context:
space:
mode:
authorchansuke <chansuke@georepublic.de>2018-09-18 23:24:15 +0900
committerJosh Matthews <josh@joshmatthews.net>2018-09-19 17:40:47 -0400
commitc37a345dc9f4dda6ea29c42f96f6c7201c42cbac (patch)
tree1f05b49bac02318455a59d5b143c186fd872bdb9 /components/script/dom/htmlparagraphelement.rs
parent2ca7a134736bb4759ff209c1bc0b6dc3cc1984c9 (diff)
downloadservo-c37a345dc9f4dda6ea29c42f96f6c7201c42cbac.tar.gz
servo-c37a345dc9f4dda6ea29c42f96f6c7201c42cbac.zip
Format script component
Diffstat (limited to 'components/script/dom/htmlparagraphelement.rs')
-rw-r--r--components/script/dom/htmlparagraphelement.rs31
1 files changed, 19 insertions, 12 deletions
diff --git a/components/script/dom/htmlparagraphelement.rs b/components/script/dom/htmlparagraphelement.rs
index bcebc146daf..d2372d72ad3 100644
--- a/components/script/dom/htmlparagraphelement.rs
+++ b/components/script/dom/htmlparagraphelement.rs
@@ -12,25 +12,32 @@ use html5ever::{LocalName, Prefix};
#[dom_struct]
pub struct HTMLParagraphElement {
- htmlelement: HTMLElement
+ htmlelement: HTMLElement,
}
impl HTMLParagraphElement {
- fn new_inherited(local_name: LocalName,
- prefix: Option<Prefix>,
- document: &Document) -> HTMLParagraphElement {
+ fn new_inherited(
+ local_name: LocalName,
+ prefix: Option<Prefix>,
+ document: &Document,
+ ) -> HTMLParagraphElement {
HTMLParagraphElement {
- 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<HTMLParagraphElement> {
- Node::reflect_node(Box::new(HTMLParagraphElement::new_inherited(local_name, prefix, document)),
- document,
- HTMLParagraphElementBinding::Wrap)
+ pub fn new(
+ local_name: LocalName,
+ prefix: Option<Prefix>,
+ document: &Document,
+ ) -> DomRoot<HTMLParagraphElement> {
+ Node::reflect_node(
+ Box::new(HTMLParagraphElement::new_inherited(
+ local_name, prefix, document,
+ )),
+ document,
+ HTMLParagraphElementBinding::Wrap,
+ )
}
}