summaryrefslogtreecommitdiff
path: root/src/lib/edje/edje_smart.c
diff options
context:
space:
mode:
authorsubhransu mohanty <sub.mohanty@samsung.com>2019-08-20 06:21:10 +0000
committerCedric BAIL <cedric.bail@free.fr>2019-08-20 10:40:19 -0700
commit676835458fbdc8702deae06a69b1223db97a525b (patch)
tree555ca7a980a56170b8f7b2b880a080c96ee4593e /src/lib/edje/edje_smart.c
parentbc0bd4eb3f73a050f5e7b69b31e8dd99daaf3a9d (diff)
edje/style: optimize updation of styles for a given text_style
Currently we do 2 pass updation. first we scan through all the styles and check if they have text_style which matches the test_style we need to update then we mark them dirty. then we call style_all_update() to go through the list again and update those styles. By combining them both in a single function we avoid scanning through the whole list again. Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9639
Diffstat (limited to 'src/lib/edje/edje_smart.c')
-rw-r--r--src/lib/edje/edje_smart.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/edje/edje_smart.c b/src/lib/edje/edje_smart.c
index 9778320..1549962 100644
--- a/src/lib/edje/edje_smart.c
+++ b/src/lib/edje/edje_smart.c
@@ -481,8 +481,7 @@ _efl_canvas_layout_efl_observer_update(Eo *obj EINA_UNUSED, Edje *ed, Efl_Object
481 } 481 }
482 else if (obs == _edje_text_class_member) 482 else if (obs == _edje_text_class_member)
483 { 483 {
484 _edje_textblock_styles_cache_free(ed, key); 484 _edje_textblock_style_all_update_text_class(ed, key);
485 _edje_textblock_style_all_update(ed);
486#ifdef EDJE_CALC_CACHE 485#ifdef EDJE_CALC_CACHE
487 ed->text_part_change = EINA_TRUE; 486 ed->text_part_change = EINA_TRUE;
488#endif 487#endif