Add a debug node for CSS outlines
authorBenjamin Otte <otte@redhat.com>
Sun, 12 Nov 2023 11:55:59 +0000 (12:55 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 17 Nov 2023 20:28:58 +0000 (15:28 -0500)
All the other CSS render operations have one, so outlines should, too.

This was found by tracking down a random border node in a rendering.

gtk/gtkrenderborder.c

index c9415c4ebf02f0173f4137dc6d4ee0112d4902a9..752017bd9dc152697e950447d94f24c2befc83d7 100644 (file)
@@ -752,10 +752,12 @@ gtk_css_style_snapshot_outline (GtkCssBoxes *boxes,
       border_width[3] = border_width[2] = border_width[1] = border_width[0];
       colors[0] = colors[1] = colors[2] = colors[3] = *color;
 
+      gtk_snapshot_push_debug (snapshot, "CSS outline");
       snapshot_border (snapshot,
                        gtk_css_boxes_get_outline_box (boxes),
                        border_width,
                        colors,
                        border_style);
+      gtk_snapshot_pop (snapshot);
     }
 }