Fix "'PaintWorker' panicked at 'index 0 and/or 4 in * do not lie on character boundary" when printing display list.

This whole piece of code seems a bit fragile, but it fixes the immediate problem for now.
This commit is contained in:
Glenn Watson 2015-08-14 11:48:36 +10:00
parent 07716780fc
commit 8218ead707

View file

@ -314,7 +314,7 @@ impl StackingContext {
if opts::get().dump_display_list_optimized { if opts::get().dump_display_list_optimized {
println!("**** optimized display list. Tile bounds: {:?}", paint_context.page_rect); println!("**** optimized display list. Tile bounds: {:?}", paint_context.page_rect);
display_list.print_items("*".to_owned()); display_list.print_items("####".to_owned());
} }
// Sort positioned children according to z-index. // Sort positioned children according to z-index.