diff options
author | David Zbarsky <dzbarsky@gmail.com> | 2015-11-02 22:26:50 -0800 |
---|---|---|
committer | David Zbarsky <dzbarsky@gmail.com> | 2015-11-03 19:51:46 -0800 |
commit | 722aa86c895b42798d60bcada41b0175dbafba52 (patch) | |
tree | 45d54ac56e4461f1ab3316a7796c4a8bc710e5b8 /components/script/dom/treewalker.rs | |
parent | ca56ebbb09f3c258d10e7a7fa276d42fe258d893 (diff) | |
download | servo-722aa86c895b42798d60bcada41b0175dbafba52.tar.gz servo-722aa86c895b42798d60bcada41b0175dbafba52.zip |
Get rid of a bunch of explicit derefs
Diffstat (limited to 'components/script/dom/treewalker.rs')
-rw-r--r-- | components/script/dom/treewalker.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/treewalker.rs b/components/script/dom/treewalker.rs index 38f723c995c..8103421a155 100644 --- a/components/script/dom/treewalker.rs +++ b/components/script/dom/treewalker.rs @@ -151,7 +151,7 @@ impl TreeWalkerMethods for TreeWalker { // "2. While node is not root, run these substeps:" while !self.is_root_node(node.r()) { // "1. Let sibling be the previous sibling of node." - let mut sibling_op = node.r().GetPreviousSibling(); + let mut sibling_op = node.GetPreviousSibling(); // "2. While sibling is not null, run these subsubsteps:" while sibling_op.is_some() { // "1. Set node to sibling." @@ -183,7 +183,7 @@ impl TreeWalkerMethods for TreeWalker { return Ok(None) } // "4. Set node to its parent." - match node.r().GetParentNode() { + match node.GetParentNode() { None => // This can happen if the user set the current node to somewhere // outside of the tree rooted at the original root. @@ -214,7 +214,7 @@ impl TreeWalkerMethods for TreeWalker { if NodeFilterConstants::FILTER_REJECT == result { break; } - match node.r().GetFirstChild() { + match node.GetFirstChild() { None => break, Some (child) => { // "1. Set node to its first child." |