[gtk/text-rendering-fixes: 2/4] Fix text node diffing




commit e6de8a1746c6825d09510bed9c49248d1ba1a145
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Sep 4 09:37:29 2021 -0400

    Fix text node diffing
    
    Now that text nodes carry flags, we need to compare
    them (even though it is very unlikely that they will
    differ from node to node).

 gsk/gskrendernodeimpl.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gsk/gskrendernodeimpl.c b/gsk/gskrendernodeimpl.c
index 4f5bf27b03..71af996efc 100644
--- a/gsk/gskrendernodeimpl.c
+++ b/gsk/gskrendernodeimpl.c
@@ -4404,7 +4404,8 @@ gsk_text_node_diff (GskRenderNode  *node1,
   if (self1->font == self2->font &&
       gdk_rgba_equal (&self1->color, &self2->color) &&
       graphene_point_equal (&self1->offset, &self2->offset) &&
-      self1->num_glyphs == self2->num_glyphs)
+      self1->num_glyphs == self2->num_glyphs &&
+      self1->render_flags == self2->render_flags)
     {
       guint i;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]