Revert "vg_common_svg: Support opacity attribute of <g> element" 83/215983/1
authorJunsuChoi <jsuya.choi@samsung.com>
Fri, 18 Oct 2019 04:51:45 +0000 (13:51 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Fri, 18 Oct 2019 04:51:50 +0000 (13:51 +0900)
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

index 1d01f9f..6cc66ae 100644 (file)
@@ -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);