summaryrefslogtreecommitdiff
path: root/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
diff options
context:
space:
mode:
authorHermet Park <chuneon.park@samsung.com>2020-09-03 16:45:27 +0900
committerHermet Park <chuneon.park@samsung.com>2020-09-03 16:45:27 +0900
commit5065c9d0c2c4202ef4e2fd7eed650681fc51bf27 (patch)
tree832fd96e234fb0903d553018d9f548ac29fa675d /src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
parent40b6e44947740133df20d97ca3ed65268037af20 (diff)
Revert "SvgLoader: Defs type nodes are not saved in loader's node list."
This reverts commit 40b6e44947740133df20d97ca3ed65268037af20. This has some side effects, we will intrdouce it again after fix it.
Diffstat (limited to '')
-rw-r--r--src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c b/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
index 38d6d50513..cefdc3304f 100644
--- a/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
+++ b/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
@@ -2160,23 +2160,17 @@ _evas_svg_loader_xml_open_parser(Evas_SVG_Loader *loader,
2160 parent = eina_array_data_get(loader->stack, eina_array_count(loader->stack) - 1); 2160 parent = eina_array_data_get(loader->stack, eina_array_count(loader->stack) - 1);
2161 node = method(loader, parent, attrs, attrs_length); 2161 node = method(loader, parent, attrs, attrs_length);
2162 } 2162 }
2163 eina_array_push(loader->stack, node);
2163 2164
2164 if (node->type == SVG_NODE_DEFS) 2165 if (node->type == SVG_NODE_DEFS)
2165 { 2166 {
2166 loader->doc->node.doc.defs = node; 2167 loader->doc->node.doc.defs = node;
2167 loader->def = node; 2168 loader->def = node;
2168 } 2169 }
2169 else
2170 {
2171 eina_array_push(loader->stack, node);
2172 }
2173 } 2170 }
2174 else if ((method = _find_graphics_factory(tag_name))) 2171 else if ((method = _find_graphics_factory(tag_name)))
2175 { 2172 {
2176 if (eina_array_count(loader->stack) > 0) 2173 parent = eina_array_data_get(loader->stack, eina_array_count(loader->stack) - 1);
2177 parent = eina_array_data_get(loader->stack, eina_array_count(loader->stack) - 1);
2178 else
2179 parent = loader->doc;
2180 node = method(loader, parent, attrs, attrs_length); 2174 node = method(loader, parent, attrs, attrs_length);
2181 } 2175 }
2182 else if ((gradient_method = _find_gradient_factory(tag_name))) 2176 else if ((gradient_method = _find_gradient_factory(tag_name)))