diff options
Diffstat (limited to 'src/components/script/dom/node.rs')
-rw-r--r-- | src/components/script/dom/node.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/components/script/dom/node.rs b/src/components/script/dom/node.rs index 38d3f5f4baf..03d00a058c8 100644 --- a/src/components/script/dom/node.rs +++ b/src/components/script/dom/node.rs @@ -36,9 +36,8 @@ use std::cast::transmute; use std::cast; use std::cell::{RefCell, Ref, RefMut}; use std::iter::{Map, Filter}; -use std::libc::{c_void, uintptr_t}; +use std::libc::uintptr_t; use std::mem; -use std::raw::Box; use serialize::{Encoder, Encodable}; @@ -945,11 +944,10 @@ impl Node { CommentNodeTypeId | TextNodeTypeId | ProcessingInstructionNodeTypeId => { - self.SetTextContent(abstract_self, val); + self.SetTextContent(abstract_self, val) } - _ => {} + _ => Ok(()) } - Ok(()) } // http://dom.spec.whatwg.org/#dom-node-textcontent @@ -1691,7 +1689,7 @@ impl Node { let abstract_uint: uintptr_t = cast::transmute(abstract_self.get()); let other_uint: uintptr_t = cast::transmute(other.get()); - let random = if (abstract_uint < other_uint) { + let random = if abstract_uint < other_uint { NodeConstants::DOCUMENT_POSITION_FOLLOWING } else { NodeConstants::DOCUMENT_POSITION_PRECEDING |