servo: Merge #7206 - Fix "'PaintWorker' panicked at 'index 0 and/or 4 in * do not lie on… (from glennw:fix-debug-panic); r=pcwalton

… character boundary" when printing display list.

This whole piece of code seems a bit fragile, but it fixes the immediate problem for now.

Source-Repo: https://github.com/servo/servo
Source-Revision: 7a9458e530a3bd7a679cb21dec8586710cf4a416
This commit is contained in:
Glenn Watson 2015-08-13 20:07:56 -06:00
parent 78696365f9
commit d78464281a

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.