devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=275165423aa7b228327bc2d9872d65ead978a6c5

commit 275165423aa7b228327bc2d9872d65ead978a6c5
Author: Chris Michael <[email protected]>
Date:   Wed Nov 21 10:45:04 2018 -0500

    elementary: Reduce EO calls by using geometry_set
    
    This patch reduces EO calls by using evas_object_geometry_set rather
    than calling move & resize.
---
 src/lib/elementary/elm_access.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/lib/elementary/elm_access.c b/src/lib/elementary/elm_access.c
index 11247e4050..f5dcb242dd 100644
--- a/src/lib/elementary/elm_access.c
+++ b/src/lib/elementary/elm_access.c
@@ -869,8 +869,7 @@ _elm_access_object_highlight(Evas_Object *obj)
                                   _access_obj_hilight_resize_cb, NULL);
    evas_object_raise(o);
    evas_object_geometry_get(obj, &x, &y, &w, &h);
-   evas_object_move(o, x, y);
-   evas_object_resize(o, w, h);
+   evas_object_geometry_set(o, x, y, w, h);
 
    widget = _elm_access_widget_target_get(obj);
    if (widget)
@@ -965,8 +964,7 @@ _access_object_register(Evas_Object *obj, Evas_Object 
*parent)
                                   _content_move, ao);
 
    evas_object_geometry_get(obj, &x, &y, &w, &h);
-   evas_object_move(ao, x, y);
-   evas_object_resize(ao, w, h);
+   evas_object_geometry_set(ao, x, y, w, h);
    evas_object_show(ao);
 
    /* register access object */
@@ -1209,8 +1207,7 @@ _elm_access_widget_item_register(Elm_Widget_Item_Data 
*item)
                                   _content_move, ao);
 
    evas_object_geometry_get(ho, &x, &y, &w, &h);
-   evas_object_move(ao, x, y);
-   evas_object_resize(ao, w, h);
+   evas_object_geometry_set(ao, x, y, w, h);
    evas_object_show(ao);
 
    // register access object

-- 


Reply via email to