Actually print the contents of Flow Tree into console.

When executing servo with proper flags (i.e. --debug dump-flow-tree),
it should print the flow tree. We had the code, but it was commented.
This commit is contained in:
Adenilson Cavalcanti 2015-02-20 16:52:18 -08:00
parent e39e75865b
commit 8a1e81a9ae

View file

@ -1133,8 +1133,7 @@ impl<'a> ImmutableFlowUtils for &'a (Flow + 'a) {
indent.push_str("| ")
}
// TODO: ICE, already fixed in rustc.
//println!("{}+ {:?}", indent, self);
println!("{}+ {:?}", indent, self);
for kid in imm_child_iter(self) {
kid.dump_with_level(level + 1)