Warning police.

This commit is contained in:
Josh Matthews 2014-03-14 14:46:30 -04:00 committed by Lars Bergstrom
parent f279abbf9f
commit 64c0de9fe7
44 changed files with 146 additions and 160 deletions

View file

@ -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