From c84d49cb2cd9945c7a2af15aca28d39a3872a4d3 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Wed, 20 Jan 2016 17:29:29 -0800 Subject: [PATCH] Don't panic on nonzero inset border radii. We don't support them, but panicking is hindering testing. --- src/batch_builder.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/batch_builder.rs b/src/batch_builder.rs index ddd7e94fbe..cbcffc16a8 100644 --- a/src/batch_builder.rs +++ b/src/batch_builder.rs @@ -637,7 +637,8 @@ impl<'a> BatchBuilder<'a> { Size2D::new(metrics.br_inner.x - metrics.tl_inner.x, metrics.br_inner.y - metrics.tl_inner.y)); - debug_assert!(border_radius == 0.0); // todo(gw): !!! + // FIXME(pcwalton): This assumes the border radius is zero. That is not always + // the case! let old_clip_out_rect = self.set_clip_out_rect(Some(*box_bounds)); self.add_color_rectangle(¢er_rect,