Merge branch 'benzea/fix-css-update' into 'gtk-3-24'

Fix CSS update loop

See merge request GNOME/gtk!2093
This commit is contained in:
Benjamin Otte 2020-06-15 20:13:56 +00:00
commit 947c3e9f72

View File

@ -706,14 +706,14 @@ gtk_css_node_get_timestamp (GtkCssNode *cssnode)
static void static void
gtk_css_node_parent_was_unset (GtkCssNode *node) gtk_css_node_parent_was_unset (GtkCssNode *node)
{ {
if (node->invalid) if (node->visible && node->invalid)
GTK_CSS_NODE_GET_CLASS (node)->queue_validate (node); GTK_CSS_NODE_GET_CLASS (node)->queue_validate (node);
} }
static void static void
gtk_css_node_parent_will_be_set (GtkCssNode *node) gtk_css_node_parent_will_be_set (GtkCssNode *node)
{ {
if (node->invalid) if (node->visible && node->invalid)
GTK_CSS_NODE_GET_CLASS (node)->dequeue_validate (node); GTK_CSS_NODE_GET_CLASS (node)->dequeue_validate (node);
} }