diff options
author | malayaleecoder <malayaleecoder@gmail.com> | 2016-03-31 23:50:40 +0530 |
---|---|---|
committer | Vishnu <vishnuhnair1996@gmail.com> | 2016-04-09 01:18:00 +0530 |
commit | d4dcaf316716d637648e9d69fed848dddaa06e49 (patch) | |
tree | 0edad41dd737c0cf4c84624d6bc07894c61b2767 /components/layout/flow.rs | |
parent | 84a3dee67ea7a45d6ec505f59c7a55162621f11e (diff) | |
download | servo-d4dcaf316716d637648e9d69fed848dddaa06e49.tar.gz servo-d4dcaf316716d637648e9d69fed848dddaa06e49.zip |
Rename imm_child_iter() and child_iter(). Fixes #10286
Diffstat (limited to 'components/layout/flow.rs')
-rw-r--r-- | components/layout/flow.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/components/layout/flow.rs b/components/layout/flow.rs index 6f603c7a1ac..2dfcc05ab06 100644 --- a/components/layout/flow.rs +++ b/components/layout/flow.rs @@ -431,7 +431,7 @@ pub fn base<T: ?Sized + Flow>(this: &T) -> &BaseFlow { } /// Iterates over the children of this immutable flow. -pub fn imm_child_iter<'a>(flow: &'a Flow) -> FlowListIterator<'a> { +pub fn child_iter<'a>(flow: &'a Flow) -> FlowListIterator<'a> { base(flow).children.iter() } @@ -445,7 +445,7 @@ pub fn mut_base<T: ?Sized + Flow>(this: &mut T) -> &mut BaseFlow { } /// Iterates over the children of this flow. -pub fn child_iter<'a>(flow: &'a mut Flow) -> MutFlowListIterator<'a> { +pub fn child_iter_mut<'a>(flow: &'a mut Flow) -> MutFlowListIterator<'a> { mut_base(flow).children.iter_mut() } @@ -1148,7 +1148,7 @@ impl BaseFlow { } } - pub fn child_iter(&mut self) -> MutFlowListIterator { + pub fn child_iter_mut(&mut self) -> MutFlowListIterator { self.children.iter_mut() } @@ -1379,7 +1379,7 @@ impl<'a> ImmutableFlowUtils for &'a Flow { fn print_with_tree(self, print_tree: &mut PrintTree) { print_tree.new_level(format!("{:?}", self)); self.print_extra_flow_children(print_tree); - for kid in imm_child_iter(self) { + for kid in child_iter(self) { kid.print_with_tree(print_tree); } print_tree.end_level(); @@ -1406,14 +1406,14 @@ impl<'a> MutableFlowUtils for &'a mut Flow { traversal.process(self); } - for kid in child_iter(self) { + for kid in child_iter_mut(self) { kid.traverse_preorder(traversal); } } /// Traverses the tree in postorder. fn traverse_postorder<T: PostorderFlowTraversal>(self, traversal: &T) { - for kid in child_iter(self) { + for kid in child_iter_mut(self) { kid.traverse_postorder(traversal); } |