aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/flow.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-04-09 03:54:40 +0530
committerbors-servo <lbergstrom+bors@mozilla.com>2016-04-09 03:54:40 +0530
commit0a1efe4578e43c4ffc2f90ff0118660899a83ac4 (patch)
treeebae73a481653e77570d66efc53e2ea2c14dd2c8 /components/layout/flow.rs
parent93c41fba695e55fe2c5f5b19408a737c650b811c (diff)
parentd4dcaf316716d637648e9d69fed848dddaa06e49 (diff)
downloadservo-0a1efe4578e43c4ffc2f90ff0118660899a83ac4.tar.gz
servo-0a1efe4578e43c4ffc2f90ff0118660899a83ac4.zip
Auto merge of #10320 - malayaleecoder:master, r=KiChjang
Rename imm_child_iter() and child_iter(). Fixes #10286 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10320) <!-- Reviewable:end -->
Diffstat (limited to 'components/layout/flow.rs')
-rw-r--r--components/layout/flow.rs12
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);
}