rendernode: Different uniformity in border nodes

Means they are different and a diff is impossible.
This commit is contained in:
Timm Bäder 2020-12-21 09:56:58 +01:00
parent a2a70c3b65
commit 9fefa7b44c

View File

@ -1263,6 +1263,13 @@ gsk_border_node_diff (GskRenderNode *node1,
gdk_rgba_equal (&self1->border_color[0], &self2->border_color[0]))
return;
/* Different uniformity -> diff impossible */
if (self1->uniform ^ self2->uniform)
{
gsk_render_node_diff_impossible (node1, node2, region);
return;
}
if (self1->border_width[0] == self2->border_width[0] &&
self1->border_width[1] == self2->border_width[1] &&
self1->border_width[2] == self2->border_width[2] &&