edje/style: optimize updation of styles for a given text_style
authorsubhransu mohanty <sub.mohanty@samsung.com>
Tue, 20 Aug 2019 06:21:10 +0000 (06:21 +0000)
committerWonki Kim <wonki_.kim@samsung.com>
Wed, 21 Aug 2019 02:01:32 +0000 (11:01 +0900)
commitf5ba327dcfceb186cec64952f4779b8cda425bdc
tree61de7fb64e7e6c6da9794fc6a53492d24ca9bd71
parent9cb6390f549f6ce21144ac41246fd4f507a491b7
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

Change-Id: I28ee8aa29b64759116ed45c17905a0ed4a00dba2
src/lib/edje/edje_private.h
src/lib/edje/edje_smart.c
src/lib/edje/edje_textblock_styles.c