diff options
author | Martin Robinson <mrobinson@igalia.com> | 2014-10-17 18:48:09 -0700 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2014-10-17 18:48:09 -0700 |
commit | e7c79906bd0d49a01b4dcd328d0b7161b1829cc2 (patch) | |
tree | 29771acf586971d6e233393fcc3b08554afb1f6d /components/layout/layout_task.rs | |
parent | b80b18f1cb95966dabb7b1ce9fa8c643a798c4ba (diff) | |
download | servo-e7c79906bd0d49a01b4dcd328d0b7161b1829cc2.tar.gz servo-e7c79906bd0d49a01b4dcd328d0b7161b1829cc2.zip |
Wait to dump flow tree until flow is complete
The flow tree is currently dumped for debugging purposes early on in
the flow process, so many values are still zero. If we wait to dump it
until later, the output will more accurately reflect the real flow tree.
Diffstat (limited to 'components/layout/layout_task.rs')
-rw-r--r-- | components/layout/layout_task.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs index c36ad0433f6..a7760382a29 100644 --- a/components/layout/layout_task.rs +++ b/components/layout/layout_task.rs @@ -654,9 +654,6 @@ impl LayoutTask { if self.opts.trace_layout { layout_debug::begin_trace(layout_root.clone()); } - if self.opts.dump_flow_tree { - layout_root.dump(); - } // Perform the primary layout passes over the flow tree to compute the locations of all // the boxes. @@ -774,6 +771,10 @@ impl LayoutTask { layout_debug::end_trace(); } + if self.opts.dump_flow_tree { + layout_root.dump(); + } + rw_data.generation += 1; // Tell script that we're done. |