diff options
author | Benjamin Otte <otte@redhat.com> | 2020-01-28 17:15:04 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2020-01-28 17:19:28 +0100 |
commit | 17ca95a1617b009a76b27a8572671855435985e7 (patch) | |
tree | 97233886b20e1aa5e9dd5b6f39d2b75d859a8c50 /gtk/gtkcssnode.c | |
parent | 1a9ab1a32f60c6fac220c3c53cbf44bf6c8c1d37 (diff) | |
download | gtk+-17ca95a1617b009a76b27a8572671855435985e7.tar.gz |
popover: Do not validate the css node on show()
This was a good idea back in GTK3 when popovers were toplevels, but now
they're regular child widgets, so they should behave that way.
Also, with the introduction of the bloom filter, gtk_css_node_validate()
now assumes it's only called on root nodes, so assert that that is the
case.
Diffstat (limited to 'gtk/gtkcssnode.c')
-rw-r--r-- | gtk/gtkcssnode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkcssnode.c b/gtk/gtkcssnode.c index ab52c2bcd3..ebc65a8d43 100644 --- a/gtk/gtkcssnode.c +++ b/gtk/gtkcssnode.c @@ -1353,6 +1353,8 @@ gtk_css_node_validate (GtkCssNode *cssnode) gint64 timestamp; gint64 before = g_get_monotonic_time (); + g_assert (cssnode->parent == NULL); + timestamp = gtk_css_node_get_timestamp (cssnode); gtk_css_node_validate_internal (cssnode, &filter, timestamp); |