mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 21:51:08 +00:00
Merge branch 'benzea/fix-css-update' into 'gtk-3-24'
Fix CSS update loop See merge request GNOME/gtk!2093 (cherry picked from commit947c3e9f72
)7a5caf1b
cssnode: Don't queue_validate/deque_validate invisible nodes
This commit is contained in:
parent
2cc39fe282
commit
9b363a62fe
@ -681,14 +681,14 @@ gtk_css_node_get_timestamp (GtkCssNode *cssnode)
|
||||
static void
|
||||
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);
|
||||
}
|
||||
|
||||
static void
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user