Improve printing of DisplayLists

Use box tree characters to make DisplayLists easier to scan when
printing them out.
This commit is contained in:
Martin Robinson 2015-09-16 11:56:40 -07:00
parent 2879da54f9
commit 30963d76be
5 changed files with 127 additions and 85 deletions

View file

@ -1060,8 +1060,7 @@ impl LayoutTask {
stacking_context.clone());
if opts::get().dump_display_list {
println!("#### start printing display list.");
stacking_context.print("#".to_owned());
stacking_context.print("DisplayList".to_owned());
}
if opts::get().dump_display_list_json {
println!("{}", serde_json::to_string_pretty(&stacking_context).unwrap());