changeset 520:f106b57b8660 Android_Skia

Skip coords that is not cached when add coords into zeroing_coords list. If we don't skip normal coords, non-cached, here, cached coords that own one or more non-cached ancestors would be fail to add into redraw_man_t::zeroing_coords list.
author Thinker K.F. Li <thinker@branda.to>
date Thu, 17 Dec 2009 16:13:35 +0800
parents 7a1b17ebb3b4
children fa2ccf39ba53
files src/redraw_man.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/redraw_man.c	Thu Dec 17 16:09:46 2009 +0800
+++ b/src/redraw_man.c	Thu Dec 17 16:13:35 2009 +0800
@@ -1534,6 +1534,9 @@
     
     /* Add all marked coords into redraw_man_t::zeroing_coords list */
     FOR_COORDS_PREORDER(rdman->root_coord, coord) {
+	if(!coord_get_flags(coord, COF_OWN_CANVAS))
+	    continue;		/* skip coords that is not cached */
+	
 	if(!coord_get_flags(coord, COF_TEMP_MARK)) {
 	    preorder_coord_skip_subtree(coord);
 	    continue;