forked from AuroraMiddleware/gtk
border: Don't render initial borders
Add a fast exist for comon case that the border values are unset.
This commit is contained in:
parent
7fbb37a09f
commit
5faf977f66
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user