auto merge of #5062 : Adenilson/servo/printDisplayList01, r=pcwalton

This patch will iterate through the DisplayList after the reflow is done and print its elements (as also any sub-lists associated to a child node stacking context).
This commit is contained in:
bors-servo 2015-02-25 20:15:56 -07:00
commit 67b78983db
3 changed files with 59 additions and 0 deletions

View file

@ -709,6 +709,12 @@ impl LayoutTask {
color,
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,