aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlsourceelement.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2015-05-23 19:49:53 -0400
committerCorey Farwell <coreyf@rwell.org>2015-05-24 00:01:49 -0400
commit8e3f4bba85b9b246fb7da8ea0994fb0160578c1b (patch)
tree2c66c695c97d638df81aeb40ac54ccc6d0cc8cb9 /components/script/dom/htmlsourceelement.rs
parent7561f7b83f27811683c1e724d75a935573a72813 (diff)
downloadservo-8e3f4bba85b9b246fb7da8ea0994fb0160578c1b.tar.gz
servo-8e3f4bba85b9b246fb7da8ea0994fb0160578c1b.zip
Reduce max line length from 150 to 120 characters
Part of https://github.com/servo/servo/issues/6041
Diffstat (limited to 'components/script/dom/htmlsourceelement.rs')
-rw-r--r--components/script/dom/htmlsourceelement.rs15
1 files changed, 11 insertions, 4 deletions
diff --git a/components/script/dom/htmlsourceelement.rs b/components/script/dom/htmlsourceelement.rs
index b35c1264166..a30b2689843 100644
--- a/components/script/dom/htmlsourceelement.rs
+++ b/components/script/dom/htmlsourceelement.rs
@@ -19,19 +19,26 @@ pub struct HTMLSourceElement {
impl HTMLSourceElementDerived for EventTarget {
fn is_htmlsourceelement(&self) -> bool {
- *self.type_id() == EventTargetTypeId::Node(NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLSourceElement)))
+ *self.type_id() ==
+ EventTargetTypeId::Node(
+ NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLSourceElement)))
}
}
impl HTMLSourceElement {
- fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLSourceElement {
+ fn new_inherited(localName: DOMString,
+ prefix: Option<DOMString>,
+ document: JSRef<Document>) -> HTMLSourceElement {
HTMLSourceElement {
- htmlelement: HTMLElement::new_inherited(HTMLElementTypeId::HTMLSourceElement, localName, prefix, document)
+ htmlelement:
+ HTMLElement::new_inherited(HTMLElementTypeId::HTMLSourceElement, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLSourceElement> {
+ pub fn new(localName: DOMString,
+ prefix: Option<DOMString>,
+ document: JSRef<Document>) -> Temporary<HTMLSourceElement> {
let element = HTMLSourceElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLSourceElementBinding::Wrap)
}