aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlstyleelement.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-05-24 18:27:26 -0500
committerbors-servo <metajack+bors@gmail.com>2015-05-24 18:27:26 -0500
commit542519ebfd073662bc9421ac5fa0aa01ebc0d6fe (patch)
tree4f6814d089be78af598f1d9f536c18a6a61f8e54 /components/script/dom/htmlstyleelement.rs
parent16f19b628fa630aab8cfd275a90128da7b59723b (diff)
parent5793add4cdc9e96930160dfc90025f43607f9f5d (diff)
downloadservo-542519ebfd073662bc9421ac5fa0aa01ebc0d6fe.tar.gz
servo-542519ebfd073662bc9421ac5fa0aa01ebc0d6fe.zip
Auto merge of #6174 - frewsxcv:cleanup-long-lines, r=SimonSapin
Part of https://github.com/servo/servo/issues/6041 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6174) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/htmlstyleelement.rs')
-rw-r--r--components/script/dom/htmlstyleelement.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/components/script/dom/htmlstyleelement.rs b/components/script/dom/htmlstyleelement.rs
index 572c7df38eb..8ab295a24af 100644
--- a/components/script/dom/htmlstyleelement.rs
+++ b/components/script/dom/htmlstyleelement.rs
@@ -27,19 +27,25 @@ pub struct HTMLStyleElement {
impl HTMLStyleElementDerived for EventTarget {
fn is_htmlstyleelement(&self) -> bool {
- *self.type_id() == EventTargetTypeId::Node(NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLStyleElement)))
+ *self.type_id() ==
+ EventTargetTypeId::Node(
+ NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLStyleElement)))
}
}
impl HTMLStyleElement {
- fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLStyleElement {
+ fn new_inherited(localName: DOMString,
+ prefix: Option<DOMString>,
+ document: JSRef<Document>) -> HTMLStyleElement {
HTMLStyleElement {
htmlelement: HTMLElement::new_inherited(HTMLElementTypeId::HTMLStyleElement, localName, prefix, document)
}
}
#[allow(unrooted_must_root)]
- pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLStyleElement> {
+ pub fn new(localName: DOMString,
+ prefix: Option<DOMString>,
+ document: JSRef<Document>) -> Temporary<HTMLStyleElement> {
let element = HTMLStyleElement::new_inherited(localName, prefix, document);
Node::reflect_node(box element, document, HTMLStyleElementBinding::Wrap)
}