Improve readability of flow tree dump

Use the PrintTree utility to improve the readability of flow tree
dumps. Blocks and fragments are now split over two dump levels, because
otherwise they are impenetrable. Also start printing the restyle damage of
fragments.
This commit is contained in:
Martin Robinson 2015-11-20 17:14:16 -08:00
parent 711f516d80
commit 8dd664a438
13 changed files with 149 additions and 61 deletions

View file

@ -17,6 +17,7 @@ use std::fmt;
use std::sync::Arc;
use style::properties::ComputedValues;
use util::logical_geometry::LogicalSize;
use util::print_tree::PrintTree;
pub struct MulticolFlow {
pub block_flow: BlockFlow,
@ -101,6 +102,10 @@ impl Flow for MulticolFlow {
fn mutate_fragments(&mut self, mutator: &mut FnMut(&mut Fragment)) {
self.block_flow.mutate_fragments(mutator)
}
fn print_extra_flow_children(&self, print_tree: &mut PrintTree) {
self.block_flow.print_extra_flow_children(print_tree);
}
}
impl fmt::Debug for MulticolFlow {