border: Don't render initial borders

Add a fast exist for comon case that the border
values are unset.
This commit is contained in:
Matthias Clasen 2020-02-01 09:12:12 +01:00
parent 7fbb37a09f
commit 5faf977f66

View File

@ -657,6 +657,9 @@ gtk_css_style_snapshot_border (GtkCssBoxes *boxes,
border = boxes->style->border;
if (border->base.type == GTK_CSS_BORDER_INITIAL_VALUES)
return;
if (gtk_border_image_init (&border_image, boxes->style))
{
cairo_t *cr;