[gtk/matthiasc/for-master] css: Allow transitioning different-size shadows




commit 919c08d4fd60eebdb716a56a678b0ae78b4ba7de
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Feb 2 15:22:32 2021 -0500

    css: Allow transitioning different-size shadows
    
    The code handles it just fine. The length check was
    an erronous addition.

 gtk/gtkcssshadowvalue.c | 3 ---
 1 file changed, 3 deletions(-)
---
diff --git a/gtk/gtkcssshadowvalue.c b/gtk/gtkcssshadowvalue.c
index 19314662e3..9ad69b9182 100644
--- a/gtk/gtkcssshadowvalue.c
+++ b/gtk/gtkcssshadowvalue.c
@@ -172,9 +172,6 @@ gtk_css_value_shadow_transition (GtkCssValue *start,
   guint i, len;
   ShadowValue *shadows;
 
-  if (start->n_shadows != end->n_shadows)
-    return NULL;
-
   if (start->n_shadows > end->n_shadows)
     len = start->n_shadows;
   else


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