From 8a03085d6b97943a720397231de87d58e9d46e44 Mon Sep 17 00:00:00 2001 From: JunsuChoi Date: Fri, 18 Oct 2019 13:51:45 +0900 Subject: [PATCH] Revert "vg_common_svg: Support opacity attribute of element" This reverts commit d932abddd8594f7b00d6d1fbbb00fe46b53f16c9. This revert patch made due to public release. This patch will be recovered later by migration. Change-Id: I5f525d2156ef616f79d893879c52ab99e027f3b9 --- src/static_libs/vg_common/vg_common_svg.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/static_libs/vg_common/vg_common_svg.c b/src/static_libs/vg_common/vg_common_svg.c index 1d01f9f..6cc66ae 100644 --- a/src/static_libs/vg_common/vg_common_svg.c +++ b/src/static_libs/vg_common/vg_common_svg.c @@ -718,7 +718,10 @@ _apply_vg_property(Svg_Node *node, Efl_VG *vg, Efl_VG *parent, Vg_File_Data *vg_ if (node->type != SVG_NODE_DOC && !node->display) efl_gfx_entity_visible_set(vg, EINA_FALSE); - if (node->type == SVG_NODE_DOC) return; + if ((node->type == SVG_NODE_G) || (node->type == SVG_NODE_DOC)) return; + + // apply the fill style property + efl_gfx_shape_fill_rule_set(vg, style->fill.fill_rule); // if fill property is NULL then do nothing if (style->fill.paint.none) @@ -754,11 +757,6 @@ _apply_vg_property(Svg_Node *node, Efl_VG *vg, Efl_VG *parent, Vg_File_Data *vg_ efl_gfx_color_set(vg, ((float) r) * fa, ((float) g) * fa, ((float) b) * fa, ((float) a) * fa); } - if (node->type == SVG_NODE_G) return; - - // apply the fill style property - efl_gfx_shape_fill_rule_set(vg, style->fill.fill_rule); - efl_gfx_shape_stroke_width_set(vg, style->stroke.width); efl_gfx_shape_stroke_cap_set(vg, style->stroke.cap); efl_gfx_shape_stroke_join_set(vg, style->stroke.join); -- 2.7.4