RESOLVED FIXED 73790
[EFL] Add RefPtrEfl specialization for evas_object.
https://bugs.webkit.org/show_bug.cgi?id=73790
Summary [EFL] Add RefPtrEfl specialization for evas_object.
KwangHyuk
Reported 2011-12-04 18:13:37 PST
As evas_object is also based on reference count, RefPtr is applied for evas_object.
Attachments
[EFL] Add RefPtrEfl specialization for evas_object. (3.94 KB, patch)
2011-12-07 20:01 PST, KwangHyuk
rniwa: review-
Patch updated. (3.99 KB, patch)
2011-12-08 23:36 PST, KwangHyuk
gyuyoung.kim: commit-queue-
Patch. (4.00 KB, patch)
2011-12-09 00:26 PST, KwangHyuk
no flags
KwangHyuk
Comment 1 2011-12-07 20:01:19 PST
Created attachment 118316 [details] [EFL] Add RefPtrEfl specialization for evas_object. As evas_object is also based on reference count, RefPtr is applied for evas_object.
KwangHyuk
Comment 2 2011-12-08 21:17:25 PST
FYI, as evas_object_del doesn't unref object by itself, both evas_object_unref and evas_object_del are required for derefIfNotNull. EAPI void evas_object_del(Evas_Object *obj) { MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ); return; MAGIC_CHECK_END(); if (obj->delete_me) return; if (obj->ref > 0) { obj->del_ref = 1; return; }
Ryosuke Niwa
Comment 3 2011-12-08 22:43:52 PST
Comment on attachment 118316 [details] [EFL] Add RefPtrEfl specialization for evas_object. View in context: https://bugs.webkit.org/attachment.cgi?id=118316&action=review > Source/WebCore/platform/efl/RefPtrEfl.cpp:28 > + if (LIKELY(ptr != 0)) WebKit style is not to compare with 0. So you should do LIKELY(ptr) or LIKELY(!!ptr)
KwangHyuk
Comment 4 2011-12-08 23:36:34 PST
Created attachment 118538 [details] Patch updated.
Gyuyoung Kim
Comment 5 2011-12-08 23:40:55 PST
Comment on attachment 118538 [details] Patch updated. Attachment 118538 [details] did not pass efl-ews (efl): Output: http://queues.webkit.org/results/10790616
KwangHyuk
Comment 6 2011-12-09 00:26:04 PST
WebKit Review Bot
Comment 7 2011-12-09 15:26:53 PST
Comment on attachment 118542 [details] Patch. Clearing flags on attachment: 118542 Committed r102480: <http://trac.webkit.org/changeset/102480>
WebKit Review Bot
Comment 8 2011-12-09 15:26:58 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.