From 7c09d7c52f3a922a7629c02d71bb8baeffac24aa Mon Sep 17 00:00:00 2001 From: Torstennator Date: Tue, 23 Aug 2022 18:52:40 +0200 Subject: [PATCH] LibWeb: Change SVGContext initial fill_color to transparent This patch changes the initialization of the fill_color of an SVGContext to transparent instead of black to not draw a black filling if the elements fill_color is defined as "none". --- Userland/Libraries/LibWeb/SVG/SVGContext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/SVG/SVGContext.h b/Userland/Libraries/LibWeb/SVG/SVGContext.h index 1073620137..e0b97d1346 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGContext.h +++ b/Userland/Libraries/LibWeb/SVG/SVGContext.h @@ -35,7 +35,7 @@ public: private: struct State { - Gfx::Color fill_color { Gfx::Color::Black }; + Gfx::Color fill_color { Gfx::Color::Transparent }; Gfx::Color stroke_color { Gfx::Color::Transparent }; float stroke_width { 1.0 }; };