efl_ui_widget: skip custom focus parent logic
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Tue, 20 Aug 2019 07:14:43 +0000 (09:14 +0200)
committerWonki Kim <wonki_.kim@samsung.com>
Wed, 21 Aug 2019 00:31:00 +0000 (09:31 +0900)
commita1dd34197229de9523d8e690c0c03a2ed651ecdd
tree1a3650e329bb9246b3e78dff1d8712aef7376bcd
parentad02e40be0b87bd955477c15c6d6918ea9ad31fa
efl_ui_widget: skip custom focus parent logic

asking for a parent provider only makes sense if we are having a custom
focus parent provider, otherwise this will just result in the normal
parent relation. Not doing this safes us a lot of time that we spent for
nothing in the focus evalulation code.

The gengrid change is needed as the parent provider should be applied
after the constructor is called, otherwise there is no garantee that
shared_win_data is not NULL.

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D9643
src/lib/elementary/efl_ui_focus_parent_provider_gen.c
src/lib/elementary/efl_ui_widget.c
src/lib/elementary/elm_gengrid.c
src/lib/elementary/elm_priv.h