From 6fb79af116a7202c997a6799bb479b390e3b4dbd Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 20 Mar 2020 11:27:42 -0400 Subject: [PATCH] evas/text: remove paragraph_direction inherit during render this is unnecessary: * for the text object itself, the value is correctly set whenever the paragraph_direction property is changed * for inheritance, smart object already implements propagation which triggers on member add or property change Reviewed-by: Marcel Hollerbach Differential Revision: https://phab.enlightenment.org/D11549 --- src/lib/evas/canvas/evas_object_text.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/lib/evas/canvas/evas_object_text.c b/src/lib/evas/canvas/evas_object_text.c index 8d13082d24..b054302a6d 100644 --- a/src/lib/evas/canvas/evas_object_text.c +++ b/src/lib/evas/canvas/evas_object_text.c @@ -2067,22 +2067,6 @@ evas_object_text_render_pre(Evas_Object *eo_obj, obj->cur->clipper->private_data); } -#ifdef BIDI_SUPPORT - if (o->inherit_paragraph_direction) - { - Evas_BiDi_Direction parent_dir = EVAS_BIDI_DIRECTION_NEUTRAL; - - if (obj->smart.parent) - parent_dir = evas_object_paragraph_direction_get(obj->smart.parent); - - if (parent_dir != o->paragraph_direction) - { - o->paragraph_direction = parent_dir; - o->changed_paragraph_direction = EINA_TRUE; - } - } -#endif - /* If object size changed and ellipsis is set */ if (((o->cur.ellipsis >= 0.0) && ((obj->cur->geometry.w != o->last_computed.w) ||