mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
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;
|
border = boxes->style->border;
|
||||||
|
|
||||||
|
if (border->base.type == GTK_CSS_BORDER_INITIAL_VALUES)
|
||||||
|
return;
|
||||||
|
|
||||||
if (gtk_border_image_init (&border_image, boxes->style))
|
if (gtk_border_image_init (&border_image, boxes->style))
|
||||||
{
|
{
|
||||||
cairo_t *cr;
|
cairo_t *cr;
|
||||||
|
Loading…
Reference in New Issue
Block a user