mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
This batch of changes upgrades Servo to work with the Rust upgrade as of
April 10, 2014. The main changes are to privacy, to work around the issues with incorrect bounds on the libstd `Arc<Mutex<T>>`, and the various API changes strewn throughout the libraries.
This commit is contained in:
parent
4942cc76bd
commit
948daf2422
226 changed files with 1478 additions and 1407 deletions
|
@ -16,9 +16,9 @@ pub enum NodeListType {
|
|||
|
||||
#[deriving(Encodable)]
|
||||
pub struct NodeList {
|
||||
list_type: NodeListType,
|
||||
reflector_: Reflector,
|
||||
window: JS<Window>
|
||||
pub list_type: NodeListType,
|
||||
pub reflector_: Reflector,
|
||||
pub window: JS<Window>
|
||||
}
|
||||
|
||||
impl NodeList {
|
||||
|
@ -55,7 +55,7 @@ impl NodeList {
|
|||
pub fn Item(&self, index: u32) -> Option<JS<Node>> {
|
||||
match self.list_type {
|
||||
_ if index >= self.Length() => None,
|
||||
Simple(ref elems) => Some(elems[index].clone()),
|
||||
Simple(ref elems) => Some(elems[index as uint].clone()),
|
||||
Children(ref node) => node.children().nth(index as uint)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue