mirror of
https://github.com/servo/servo.git
synced 2025-06-20 07:08:59 +01:00
Warning police.
This commit is contained in:
parent
f279abbf9f
commit
64c0de9fe7
44 changed files with 146 additions and 160 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue