diff options
author | Martin Robinson <mrobinson@igalia.com> | 2015-11-20 17:14:16 -0800 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2015-11-23 15:17:32 -0800 |
commit | 8dd664a438a0cdd6af83b5f8c548a35f7e515233 (patch) | |
tree | eb786aaa0b05d031130cb77ef05a496d872eae66 /components/layout/table_caption.rs | |
parent | 711f516d80c9c0026744cd373d398dc294f14d2a (diff) | |
download | servo-8dd664a438a0cdd6af83b5f8c548a35f7e515233.tar.gz servo-8dd664a438a0cdd6af83b5f8c548a35f7e515233.zip |
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.
Diffstat (limited to 'components/layout/table_caption.rs')
-rw-r--r-- | components/layout/table_caption.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/layout/table_caption.rs b/components/layout/table_caption.rs index 54c96ac34fa..287c1c617e1 100644 --- a/components/layout/table_caption.rs +++ b/components/layout/table_caption.rs @@ -16,6 +16,7 @@ use std::fmt; use std::sync::Arc; use style::properties::ComputedValues; use util::logical_geometry::LogicalSize; +use util::print_tree::PrintTree; /// A table formatting context. pub struct TableCaptionFlow { @@ -100,6 +101,10 @@ impl Flow for TableCaptionFlow { 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 TableCaptionFlow { |