vg_load_svg: Add points copy of missing polygon/polyline 61/245561/1
authorJunsuChoi <jsuya.choi@samsung.com>
Mon, 12 Oct 2020 09:36:31 +0000 (18:36 +0900)
committerHermet Park <chuneon.park@samsung.com>
Mon, 12 Oct 2020 09:41:36 +0000 (18:41 +0900)
commitbf998034c1d0ecc41ec920a36c240f1baf29c36d
tree4129d4fdb4fcc9c7ddf1ceb97f26df0dea560a2b
parent1cae980a3525a09ee96d445a24b29e38890aca9d
vg_load_svg: Add points copy of missing polygon/polyline

Summary:
When using <use> node, do atrribute copy.
At that time, when target(url) is polygon or polyline,
points array is not copied, causing a problem in output.
So, add missing array copy.

Test Plan:
 - Test SVG code

<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve">
    <g opacity="0.5">
        <defs>
            <polygon id="test" opacity="0.5" points="41.8,14.5 22.2,14.5 22.2,22.8 41.8,40.7"/>
        </defs>
        <use xlink:href="#test"  overflow="visible"/>
    </g>
</svg>

Reviewers: Hermet, smohanty

Reviewed By: Hermet

Subscribers: #reviewers, #committers, kimcinoo, herb, cedric

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D12174

Change-Id: Iecbed3a953d7e7465b54e9c648474ca8f9480e0a
src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c