mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
broadway: Don't send node updates to browser if nothing changed
This commit is contained in:
parent
d43008b2a5
commit
af890e6677
@ -373,6 +373,12 @@ broadway_output_window_set_nodes (BroadwayOutput *output,
|
||||
BroadwayNode *old_root)
|
||||
{
|
||||
gsize size_pos, start, end;
|
||||
|
||||
/* Early return if nothing changed */
|
||||
if (old_root != NULL &&
|
||||
broadway_node_deep_equal (root, old_root))
|
||||
return;
|
||||
|
||||
write_header (output, BROADWAY_OP_SET_NODES);
|
||||
|
||||
append_uint16 (output, id);
|
||||
|
Loading…
Reference in New Issue
Block a user