diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2015-11-04 11:03:54 +0530 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2015-11-04 11:03:54 +0530 |
commit | 4b9fa13f2f6a1aa38d180367426498f01f6414c9 (patch) | |
tree | 504c728f28548747b16a6b7e4e569ae809983aeb /components/script/dom/range.rs | |
parent | 488459f80196a9d080dff9a57bfe0899c4c4ee68 (diff) | |
parent | 722aa86c895b42798d60bcada41b0175dbafba52 (diff) | |
download | servo-4b9fa13f2f6a1aa38d180367426498f01f6414c9.tar.gz servo-4b9fa13f2f6a1aa38d180367426498f01f6414c9.zip |
Auto merge of #8305 - dzbarsky:roots, r=Ms2ger,
Get rid of a bunch of explicit derefs
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8305)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/range.rs')
-rw-r--r-- | components/script/dom/range.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/range.rs b/components/script/dom/range.rs index fbef27341ec..1675036e80b 100644 --- a/components/script/dom/range.rs +++ b/components/script/dom/range.rs @@ -810,10 +810,10 @@ fn bp_position(a_node: &Node, a_offset: u32, // Step 3-1, 3-2. let mut b_ancestors = b_node.inclusive_ancestors(); let child = b_ancestors.find(|child| { - child.r().GetParentNode().unwrap().r() == a_node + child.GetParentNode().unwrap().r() == a_node }).unwrap(); // Step 3-3. - if child.r().index() < a_offset { + if child.index() < a_offset { Some(Ordering::Greater) } else { // Step 4. |