render nodes: Simplify diffing of uniform border nodes

This commit is contained in:
Timm Bäder 2020-07-24 19:06:50 +02:00
parent d5f0256f8b
commit a3b452725b

View File

@ -542,6 +542,12 @@ gsk_border_node_diff (GskRenderNode *node1,
GskBorderNode *self1 = (GskBorderNode *) node1;
GskBorderNode *self2 = (GskBorderNode *) node2;
if (self1->uniform &&
self2->uniform &&
gdk_rgba_equal (&self1->border_color[0], &self2->border_color[0]) &&
self1->border_width[0] == self2->border_width[0])
return;
if (gsk_rounded_rect_equal (&self1->outline, &self2->outline) &&
gdk_rgba_equal (&self1->border_color[0], &self2->border_color[0]) &&
gdk_rgba_equal (&self1->border_color[1], &self2->border_color[1]) &&