loader SvgSceneBuilder: Add root node to clipping viewBox.
authorJunsuChoi <jsuya.choi@samsung.com>
Mon, 15 Mar 2021 05:56:36 +0000 (14:56 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Tue, 16 Mar 2021 01:05:46 +0000 (10:05 +0900)
commit7b34c3d033eb4f0de046c82511ff8baf32469a5a
treed773951c2ef04fa14edc4ffa5e799b7a6969a8f4
parent32ad795f1bd224bb7f5fab923eb72d9420d358dd
loader SvgSceneBuilder: Add root node to clipping viewBox.

If the boundary of scene created through the scenebuilder is larger than the viewbox,
scene(SVG's root) should be clipped to the size of the viewbox.
So, if scene need a clip, add a parent root and add clippath composition to that root.
src/loaders/svg/tvgSvgSceneBuilder.cpp