Auto merge of #7206 - glennw:fix-debug-panic, r=pcwalton

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.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7206)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-08-13 20:07:56 -06:00
commit 7a9458e530

View file

@ -314,7 +314,7 @@ impl StackingContext {
if opts::get().dump_display_list_optimized {
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.