broadway: Don't send node updates to browser if nothing changed

This commit is contained in:
Alexander Larsson 2017-11-30 17:32:01 +01:00
parent d43008b2a5
commit af890e6677

View File

@ -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);