mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
gfx: Print out stacking context info when dumping display lists.
This commit is contained in:
parent
1f0b5889da
commit
711993eb46
3 changed files with 33 additions and 22 deletions
|
@ -807,11 +807,6 @@ impl LayoutTask {
|
|||
ScrollPolicy::Scrollable));
|
||||
let origin = Rect(Point2D(Au(0), Au(0)), root_size);
|
||||
|
||||
if opts::get().dump_display_list {
|
||||
println!("#### start printing display list.");
|
||||
display_list.print_items(String::from_str("#"));
|
||||
}
|
||||
|
||||
let stacking_context = Arc::new(StackingContext::new(display_list,
|
||||
&origin,
|
||||
&origin,
|
||||
|
@ -821,6 +816,11 @@ impl LayoutTask {
|
|||
mix_blend_mode::T::normal,
|
||||
Some(paint_layer)));
|
||||
|
||||
if opts::get().dump_display_list {
|
||||
println!("#### start printing display list.");
|
||||
stacking_context.print(String::from_str("#"));
|
||||
}
|
||||
|
||||
rw_data.stacking_context = Some(stacking_context.clone());
|
||||
|
||||
debug!("Layout done!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue