[gtk/initial-style: 3/3] border: Don't render initial borders
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/initial-style: 3/3] border: Don't render initial borders
- Date: Sat, 1 Feb 2020 08:14:05 +0000 (UTC)
commit 5faf977f668e342ac00a5a8a26f8b7d137353e25
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Feb 1 09:12:12 2020 +0100
border: Don't render initial borders
Add a fast exist for comon case that the border
values are unset.
gtk/gtkrenderborder.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gtk/gtkrenderborder.c b/gtk/gtkrenderborder.c
index 220494178d..b574002203 100644
--- a/gtk/gtkrenderborder.c
+++ b/gtk/gtkrenderborder.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]