Commit 17224515 authored by Nicolas Silva's avatar Nicolas Silva
Browse files

Bug 1637112 - Don't draw border-image segments with zero slice size. r=mstange, a=dveditz

Differential Revision: https://phabricator.services.mozilla.com/D75119
parent 7fcfba11
...@@ -1352,7 +1352,7 @@ impl NinePatchDescriptor { ...@@ -1352,7 +1352,7 @@ impl NinePatchDescriptor {
repeat_vertical: RepeatMode, repeat_vertical: RepeatMode,
extra_flags: BrushFlags, 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; return;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment