From 492014baf5b4c3c475dfc693b7269f55f0af7815 Mon Sep 17 00:00:00 2001 From: SangHyeon Jade Lee Date: Tue, 31 Dec 2019 09:48:18 -0500 Subject: [PATCH] evas: fix legacy evas_object_clip_unset for group object. Summary: evas_object_clip_unset was broken for group object in several month or year.. basically, evas_object_clip_unset(obj) efl_canvas_object_clipper_set(obj, NULL) is equal on efl_clip implements, but on the group object, we need to unclip the whole group children in efl_canvas_group_efl_canvas_object_clipper_set which was not performed by legacy clip_usnet API. Test Plan: try clip_unset(obj) and clipper_set(obj, NULL) in any group clipped case (i.e. scroller content) and see clip_unset is broken and fixed by patch. Reviewers: cedric, bu5hm4n, zmike Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10984 --- src/lib/evas/canvas/evas_clip.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/evas/canvas/evas_clip.c b/src/lib/evas/canvas/evas_clip.c index 476183d..210aa5f 100644 --- a/src/lib/evas/canvas/evas_clip.c +++ b/src/lib/evas/canvas/evas_clip.c @@ -461,9 +461,7 @@ _clip_unset(Eo *eo_obj, Evas_Object_Protected_Data *obj) EAPI void evas_object_clip_unset(Evas_Object *eo_obj) { - Evas_Object_Protected_Data *obj = EVAS_OBJECT_DATA_SAFE_GET(eo_obj); - EVAS_OBJECT_DATA_ALIVE_CHECK(obj); - _clip_unset(eo_obj, obj); + efl_canvas_object_clipper_set(eo_obj, NULL); } static void -- 2.7.4