forked from enlightenment/efl
edje: make most edje_util.c functions obey freeze
a number of these functions have implicit recalcs, which is bad because it's a pretty significant perf bottleneck, but it can't be improved without breaking existing behavior expectations so this is probably the best that can be done ref T6884 Differential Revision: https://phab.enlightenment.org/D5946
This commit is contained in:
parent
0286a69e9e
commit
e1036aff40
|
@ -442,7 +442,7 @@ _efl_canvas_layout_efl_ui_base_mirrored_set(Eo *obj, Edje *ed, Eina_Bool rtl)
|
|||
_edje_part_description_apply(ed, ep, s, v, NULL, 0.0);
|
||||
ep->chosen_description = ep->param1.description;
|
||||
}
|
||||
_edje_recalc_do(ed);
|
||||
if (!ed->freeze) _edje_recalc_do(ed);
|
||||
|
||||
_edje_object_orientation_inform(obj);
|
||||
|
||||
|
@ -1898,7 +1898,7 @@ edje_object_part_object_get(const Eo *obj, const char *part)
|
|||
if ((!ed) || (!part)) return NULL;
|
||||
|
||||
/* Need to recalc before providing the object. */
|
||||
_edje_recalc_do(ed);
|
||||
if (!ed->freeze) _edje_recalc_do(ed);
|
||||
|
||||
rp = _edje_real_part_recursive_get(&ed, part);
|
||||
if (!rp) return NULL;
|
||||
|
@ -2053,7 +2053,7 @@ _edje_efl_text_text_get(const Eo *obj EINA_UNUSED, Edje *ed, const char *part,
|
|||
if ((!ed) || (!part)) return NULL;
|
||||
|
||||
/* Need to recalc before providing the object. */
|
||||
_edje_recalc_do(ed);
|
||||
if (!ed->freeze) _edje_recalc_do(ed);
|
||||
|
||||
rp = _edje_real_part_recursive_get(&ed, part);
|
||||
if (!rp) return NULL;
|
||||
|
@ -3275,7 +3275,7 @@ _edje_efl_content_content_get(Edje *ed, const char *part)
|
|||
if ((!ed) || (!part)) return NULL;
|
||||
|
||||
/* Need to recalc before providing the object. */
|
||||
_edje_recalc_do(ed);
|
||||
if (!ed->freeze) _edje_recalc_do(ed);
|
||||
|
||||
rp = _edje_real_part_recursive_get(&ed, part);
|
||||
if (!rp) return NULL;
|
||||
|
@ -3341,7 +3341,7 @@ _efl_canvas_layout_efl_layout_group_group_size_max_get(const Eo *obj EINA_UNUSED
|
|||
return EINA_SIZE2D(0, 0);
|
||||
|
||||
/* Need to recalc before providing the object. */
|
||||
_edje_recalc_do(ed);
|
||||
if (!ed->freeze) _edje_recalc_do(ed);
|
||||
|
||||
sz = ed->collection->prop.max;
|
||||
|
||||
|
|
Loading…
Reference in New Issue