summaryrefslogtreecommitdiff
path: root/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2020-09-11 11:49:09 +0900
committerHermet Park <chuneon.park@samsung.com>2020-09-11 11:49:09 +0900
commit725219e31980a377444a9088a7dbadf438300acf (patch)
tree4400b6ada275a46b9dc846a2013ec045dc06e2bd /src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
parentfbf8db3699b65a04a7a6e1e270bcb8f78544dc9d (diff)
vg_load_svg: Add Mask, ClipPath nodees as dummy.
Summary: Mask and clippath TAG are not supported yet. If this TAG is used, the Child TAG declared with this TAG may cause problems. To prevent that, declare them as Unknown types until they are supported. (display=none) Test Plan: N/A Reviewers: Hermet, smohanty Reviewed By: Hermet Subscribers: cedric, herb, #reviewers, kimcinoo, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12139
Diffstat (limited to '')
-rw-r--r--src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c26
1 files changed, 24 insertions, 2 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 ea19f2d122..f40bfa4915 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
@@ -1091,6 +1091,24 @@ _create_switch_node(Evas_SVG_Loader *loader EINA_UNUSED, Svg_Node *parent EINA_U
1091 return NULL; 1091 return NULL;
1092} 1092}
1093 1093
1094static Svg_Node *
1095_create_mask_node(Evas_SVG_Loader *loader EINA_UNUSED, Svg_Node *parent EINA_UNUSED, const char *buf EINA_UNUSED, unsigned buflen EINA_UNUSED)
1096{
1097 Svg_Node *node = _create_node(NULL, SVG_NODE_UNKNOWN);
1098
1099 node->display = EINA_FALSE;
1100 return node;
1101}
1102
1103static Svg_Node *
1104_create_clipPath_node(Evas_SVG_Loader *loader EINA_UNUSED, Svg_Node *parent EINA_UNUSED, const char *buf EINA_UNUSED, unsigned buflen EINA_UNUSED)
1105{
1106 Svg_Node *node = _create_node(NULL, SVG_NODE_UNKNOWN);
1107
1108 node->display = EINA_FALSE;
1109 return node;
1110}
1111
1094static Eina_Bool 1112static Eina_Bool
1095_attr_parse_path_node(void *data, const char *key, const char *value) 1113_attr_parse_path_node(void *data, const char *key, const char *value)
1096{ 1114{
@@ -1714,7 +1732,9 @@ static const struct {
1714 TAG_DEF(defs), 1732 TAG_DEF(defs),
1715 TAG_DEF(g), 1733 TAG_DEF(g),
1716 TAG_DEF(svg), 1734 TAG_DEF(svg),
1717 TAG_DEF(switch) 1735 TAG_DEF(switch),
1736 TAG_DEF(mask),
1737 TAG_DEF(clipPath)
1718}; 1738};
1719 1739
1720#define FIND_FACTORY(Short_Name, Tags_Array) \ 1740#define FIND_FACTORY(Short_Name, Tags_Array) \
@@ -2239,7 +2259,9 @@ static const struct {
2239} pop_array[] = { 2259} pop_array[] = {
2240 POP_TAG(g), 2260 POP_TAG(g),
2241 POP_TAG(svg), 2261 POP_TAG(svg),
2242 POP_TAG(defs) 2262 POP_TAG(defs),
2263 POP_TAG(mask),
2264 POP_TAG(clipPath)
2243}; 2265};
2244 2266
2245static void 2267static void