diff options
author | Corey Farwell <coreyf@rwell.org> | 2015-05-23 19:49:53 -0400 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2015-05-24 00:01:49 -0400 |
commit | 8e3f4bba85b9b246fb7da8ea0994fb0160578c1b (patch) | |
tree | 2c66c695c97d638df81aeb40ac54ccc6d0cc8cb9 /components/script/dom/htmlformelement.rs | |
parent | 7561f7b83f27811683c1e724d75a935573a72813 (diff) | |
download | servo-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/htmlformelement.rs')
-rw-r--r-- | components/script/dom/htmlformelement.rs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/components/script/dom/htmlformelement.rs b/components/script/dom/htmlformelement.rs index 3d6ad028ab7..254465dc416 100644 --- a/components/script/dom/htmlformelement.rs +++ b/components/script/dom/htmlformelement.rs @@ -51,12 +51,16 @@ pub struct HTMLFormElement { impl HTMLFormElementDerived for EventTarget { fn is_htmlformelement(&self) -> bool { - *self.type_id() == EventTargetTypeId::Node(NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLFormElement))) + *self.type_id() == + EventTargetTypeId::Node( + NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLFormElement))) } } impl HTMLFormElement { - fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLFormElement { + fn new_inherited(localName: DOMString, + prefix: Option<DOMString>, + document: JSRef<Document>) -> HTMLFormElement { HTMLFormElement { htmlelement: HTMLElement::new_inherited(HTMLElementTypeId::HTMLFormElement, localName, prefix, document), marked_for_reset: Cell::new(false), @@ -64,7 +68,9 @@ impl HTMLFormElement { } #[allow(unrooted_must_root)] - pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLFormElement> { + pub fn new(localName: DOMString, + prefix: Option<DOMString>, + document: JSRef<Document>) -> Temporary<HTMLFormElement> { let element = HTMLFormElement::new_inherited(localName, prefix, document); Node::reflect_node(box element, document, HTMLFormElementBinding::Wrap) } |