From 9fefa7b44c84d14ee2933446ba2b007017f7400a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 21 Dec 2020 09:56:58 +0100 Subject: [PATCH] rendernode: Different uniformity in border nodes Means they are different and a diff is impossible. --- gsk/gskrendernodeimpl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gsk/gskrendernodeimpl.c b/gsk/gskrendernodeimpl.c index c9ffdce4ce..8606faf857 100644 --- a/gsk/gskrendernodeimpl.c +++ b/gsk/gskrendernodeimpl.c @@ -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] &&