mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Do not root NodeIterator::root_node
This commit is contained in:
parent
6849510526
commit
b149e0c979
1 changed files with 2 additions and 2 deletions
|
@ -121,7 +121,7 @@ impl NodeIteratorMethods for NodeIterator {
|
|||
}
|
||||
|
||||
// Step 3-1.
|
||||
for following_node in node.r().following_nodes(self.root_node.root().r()) {
|
||||
for following_node in node.r().following_nodes(&self.root_node) {
|
||||
// Step 3-2.
|
||||
let result = try!(self.accept_node(following_node.r()));
|
||||
|
||||
|
@ -165,7 +165,7 @@ impl NodeIteratorMethods for NodeIterator {
|
|||
}
|
||||
|
||||
// Step 3-1.
|
||||
for preceding_node in node.r().preceding_nodes(self.root_node.root().r()) {
|
||||
for preceding_node in node.r().preceding_nodes(&self.root_node) {
|
||||
|
||||
// Step 3-2.
|
||||
let result = try!(self.accept_node(preceding_node.r()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue