[gtk/wip/baedert/for-master: 22/29] csslookup: Remove tautological if expression



commit 76435bfd0ea1032bf76ca93d39972813fc9ccb4a
Author: Timm Bäder <mail baedert org>
Date:   Thu Aug 22 12:54:36 2019 +0200

    csslookup: Remove tautological if expression
    
    A value is always either set or missing.
    This was changed in a1f7c459b75fe47e2abb7e856e6d4a4ad5208cb9, which
    removed the ability for partial style computation.

 gtk/gtkcsslookup.c | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtkcsslookup.c b/gtk/gtkcsslookup.c
index cc1df1d2f9..b871c8f7a0 100644
--- a/gtk/gtkcsslookup.c
+++ b/gtk/gtkcsslookup.c
@@ -111,14 +111,11 @@ _gtk_css_lookup_resolve (GtkCssLookup      *lookup,
 
   for (i = 0; i < GTK_CSS_PROPERTY_N_PROPERTIES; i++)
     {
-      if (lookup->values[i].value ||
-          _gtk_bitmask_get (lookup->missing, i))
-        gtk_css_static_style_compute_value (style,
-                                            provider,
-                                            parent_style,
-                                            i,
-                                            lookup->values[i].value,
-                                            lookup->values[i].section);
-      /* else not a relevant property */
+      gtk_css_static_style_compute_value (style,
+                                          provider,
+                                          parent_style,
+                                          i,
+                                          lookup->values[i].value,
+                                          lookup->values[i].section);
     }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]