svg loader: correct clipper usage. 97/289897/1
authorHermet Park <hermetpark@gmail.com>
Sun, 22 Jan 2023 00:53:27 +0000 (09:53 +0900)
committerMichal Szczecinski <m.szczecinsk@partner.samsung.com>
Wed, 15 Mar 2023 07:27:44 +0000 (08:27 +0100)
that has been changed by 0de3872be33793d2c8db03d5b85da38670410626

Change-Id: If0b014910235253416ca8585b6fd5fe336538f4c

src/loaders/svg/tvgSvgSceneBuilder.cpp

index f60c0f6..5e97b74 100644 (file)
@@ -264,11 +264,8 @@ static void _applyComposition(Paint* paint, const SvgNode* node, const Box& vBox
                 if (_appendChildShape(*child, comp.get(), vBox, svgPath)) valid = true;
             }
 
-            if (valid) {
-                comp->fill(255, 255, 255, 255);
-                comp->opacity(255);
-                paint->composite(move(comp), CompositeMethod::ClipPath);
-            }
+            if (valid) paint->composite(move(comp), CompositeMethod::ClipPath);
+
             node->style->clipPath.applying = false;
         }
     }