mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Improve printing of DisplayLists
Use box tree characters to make DisplayLists easier to scan when printing them out.
This commit is contained in:
parent
2879da54f9
commit
30963d76be
5 changed files with 127 additions and 85 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue