mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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:
parent
711f516d80
commit
8dd664a438
13 changed files with 149 additions and 61 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue