mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Replace Root::deref() calls by Root::r() calls where possible.
This changes those calls that were already sound.
This commit is contained in:
parent
c9f26dfd59
commit
1dad710063
61 changed files with 479 additions and 471 deletions
|
@ -52,7 +52,7 @@ impl<'a> NodeListMethods for JSRef<'a, NodeList> {
|
|||
NodeListType::Simple(ref elems) => elems.len() as u32,
|
||||
NodeListType::Children(ref node) => {
|
||||
let node = node.root();
|
||||
node.children().count() as u32
|
||||
node.r().children().count() as u32
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -63,8 +63,8 @@ impl<'a> NodeListMethods for JSRef<'a, NodeList> {
|
|||
NodeListType::Simple(ref elems) => Some(Temporary::new(elems[index as uint].clone())),
|
||||
NodeListType::Children(ref node) => {
|
||||
let node = node.root();
|
||||
node.children().nth(index as uint)
|
||||
.map(|child| Temporary::from_rooted(child))
|
||||
node.r().children().nth(index as uint)
|
||||
.map(|child| Temporary::from_rooted(child))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue