From 4c56570aa9e8425558ee7cc810773772d5d67910 Mon Sep 17 00:00:00 2001 From: Nicolas Silva Date: Wed, 13 May 2020 17:31:25 +0000 Subject: [PATCH] Bug 1637112 - Don't draw border-image segments with zero slice size. r=mstange Differential Revision: https://phabricator.services.mozilla.com/D75119 --- gfx/wr/webrender/src/border.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/wr/webrender/src/border.rs b/gfx/wr/webrender/src/border.rs index 553fbb80371d..094c78866a22 100644 --- a/gfx/wr/webrender/src/border.rs +++ b/gfx/wr/webrender/src/border.rs @@ -1355,7 +1355,7 @@ impl NinePatchDescriptor { repeat_vertical: RepeatMode, extra_flags: BrushFlags, ) { - if uv_rect.uv1.x < uv_rect.uv0.x || uv_rect.uv1.y < uv_rect.uv0.y { + if uv_rect.uv1.x <= uv_rect.uv0.x || uv_rect.uv1.y <= uv_rect.uv0.y { return; }