Skip to content

Commit

Permalink
Auto merge of #7206 - glennw:fix-debug-panic, r=pcwalton
Browse files Browse the repository at this point in the history
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 -->
  • Loading branch information
bors-servo committed Aug 14, 2015
2 parents f5e97ef + 8218ead commit 7a9458e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/gfx/display_list/mod.rs
Expand Up @@ -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.
Expand Down

0 comments on commit 7a9458e

Please sign in to comment.