aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlaudioelement.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/htmlaudioelement.rs
parent2ca7a134736bb4759ff209c1bc0b6dc3cc1984c9 (diff)
downloadservo-c37a345dc9f4dda6ea29c42f96f6c7201c42cbac.tar.gz
servo-c37a345dc9f4dda6ea29c42f96f6c7201c42cbac.zip
Format script component
Diffstat (limited to 'components/script/dom/htmlaudioelement.rs')
-rw-r--r--components/script/dom/htmlaudioelement.rs31
1 files changed, 19 insertions, 12 deletions
diff --git a/components/script/dom/htmlaudioelement.rs b/components/script/dom/htmlaudioelement.rs
index ed33f124819..354e138089b 100644
--- a/components/script/dom/htmlaudioelement.rs
+++ b/components/script/dom/htmlaudioelement.rs
@@ -12,25 +12,32 @@ use html5ever::{LocalName, Prefix};
#[dom_struct]
pub struct HTMLAudioElement {
- htmlmediaelement: HTMLMediaElement
+ htmlmediaelement: HTMLMediaElement,
}
impl HTMLAudioElement {
- fn new_inherited(local_name: LocalName,
- prefix: Option<Prefix>,
- document: &Document) -> HTMLAudioElement {
+ fn new_inherited(
+ local_name: LocalName,
+ prefix: Option<Prefix>,
+ document: &Document,
+ ) -> HTMLAudioElement {
HTMLAudioElement {
- htmlmediaelement:
- HTMLMediaElement::new_inherited(local_name, prefix, document)
+ htmlmediaelement: HTMLMediaElement::new_inherited(local_name, prefix, document),
}
}
#[allow(unrooted_must_root)]
- pub fn new(local_name: LocalName,
- prefix: Option<Prefix>,
- document: &Document) -> DomRoot<HTMLAudioElement> {
- Node::reflect_node(Box::new(HTMLAudioElement::new_inherited(local_name, prefix, document)),
- document,
- HTMLAudioElementBinding::Wrap)
+ pub fn new(
+ local_name: LocalName,
+ prefix: Option<Prefix>,
+ document: &Document,
+ ) -> DomRoot<HTMLAudioElement> {
+ Node::reflect_node(
+ Box::new(HTMLAudioElement::new_inherited(
+ local_name, prefix, document,
+ )),
+ document,
+ HTMLAudioElementBinding::Wrap,
+ )
}
}