diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-05-14 13:26:13 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-05-14 13:26:13 +0200 |
commit | d84c3e7a303c5582cd240be637574067bd5cac91 (patch) | |
tree | 50aeb9adc1503f600c68d67bade9a51f1fb57252 /components/script/dom | |
parent | 40a91d6227a8ee89b6278758ebebb53625535e0d (diff) | |
download | servo-d84c3e7a303c5582cd240be637574067bd5cac91.tar.gz servo-d84c3e7a303c5582cd240be637574067bd5cac91.zip |
Fix some overlong lines.
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/htmlmediaelement.rs | 4 | ||||
-rw-r--r-- | components/script/dom/node.rs | 15 | ||||
-rw-r--r-- | components/script/dom/websocket.rs | 3 |
3 files changed, 15 insertions, 7 deletions
diff --git a/components/script/dom/htmlmediaelement.rs b/components/script/dom/htmlmediaelement.rs index 86a882dbb86..fbd12be244c 100644 --- a/components/script/dom/htmlmediaelement.rs +++ b/components/script/dom/htmlmediaelement.rs @@ -26,7 +26,9 @@ impl HTMLMediaElementDerived for EventTarget { } impl HTMLMediaElement { - pub fn new_inherited(type_id: HTMLMediaElementTypeId, tag_name: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLMediaElement { + pub fn new_inherited(type_id: HTMLMediaElementTypeId, tag_name: DOMString, + prefix: Option<DOMString>, document: JSRef<Document>) + -> HTMLMediaElement { HTMLMediaElement { htmlelement: HTMLElement::new_inherited(HTMLElementTypeId::HTMLMediaElement(type_id), tag_name, prefix, document) } diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 90aaa524d05..f7401c99b11 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -2234,13 +2234,18 @@ impl<'a> NodeMethods for JSRef<'a, Node> { match node.type_id() { // Step 3. - NodeTypeId::DocumentType if !is_equal_doctype(this, node) => return false, - NodeTypeId::Element(..) if !is_equal_element(this, node) => return false, - NodeTypeId::CharacterData(CharacterDataTypeId::ProcessingInstruction) if !is_equal_processinginstruction(this, node) => return false, + NodeTypeId::DocumentType + if !is_equal_doctype(this, node) => return false, + NodeTypeId::Element(..) + if !is_equal_element(this, node) => return false, + NodeTypeId::CharacterData(CharacterDataTypeId::ProcessingInstruction) + if !is_equal_processinginstruction(this, node) => return false, NodeTypeId::CharacterData(CharacterDataTypeId::Text) | - NodeTypeId::CharacterData(CharacterDataTypeId::Comment) if !is_equal_characterdata(this, node) => return false, + NodeTypeId::CharacterData(CharacterDataTypeId::Comment) + if !is_equal_characterdata(this, node) => return false, // Step 4. - NodeTypeId::Element(..) if !is_equal_element_attrs(this, node) => return false, + NodeTypeId::Element(..) + if !is_equal_element_attrs(this, node) => return false, _ => () } diff --git a/components/script/dom/websocket.rs b/components/script/dom/websocket.rs index 0b7673d828b..009ca43a78b 100644 --- a/components/script/dom/websocket.rs +++ b/components/script/dom/websocket.rs @@ -156,7 +156,8 @@ impl<'a> WebSocketMethods for JSRef<'a, WebSocket> { fn Send(self, data: Option<DOMString>)-> Fallible<()>{ /*TODO: This is not up to spec see http://html.spec.whatwg.org/multipage/comms.html search for "If argument is a string" TODO: Need to buffer data - TODO: bufferedAmount attribute returns the size of the buffer in bytes - this is a required attribute defined in the websocket.webidle file + TODO: bufferedAmount attribute returns the size of the buffer in bytes - + this is a required attribute defined in the websocket.webidl file TODO: The send function needs to flag when full by using the following self.full.set(true). This needs to be done when the buffer is full */ |