Auto merge of #6778 - nox:childnodes, r=jdm

Optimise Node.childNodes



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6778)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-08-10 14:05:02 -06:00
commit 2b9590c5a5
5 changed files with 253 additions and 32 deletions

View file

@ -237,6 +237,10 @@ impl<'ln> LayoutNode<'ln> {
self.node.next_sibling_ref().map(|node| self.new_with_this_lifetime(&node))
}
}
pub fn children_count(&self) -> u32 {
unsafe { self.node.children_count() }
}
}
impl<'ln> LayoutNode<'ln> {