From f7442ae907e6c48fa2f47bcee4cfd93d76cd172c Mon Sep 17 00:00:00 2001 From: Kenneth Myhra Date: Sun, 17 Aug 2025 22:02:59 +0200 Subject: [PATCH] LibWeb: Remove unnecessary as_if() on paint_style This causes a compiler error on GCC 15.0.1 and should be unnecessary since paint_style already is of type SVGGradientPaintStyle. --- Libraries/LibWeb/Painting/DisplayListPlayerSkia.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibWeb/Painting/DisplayListPlayerSkia.cpp b/Libraries/LibWeb/Painting/DisplayListPlayerSkia.cpp index 0a28f7d6cfb..1458ecc25b4 100644 --- a/Libraries/LibWeb/Painting/DisplayListPlayerSkia.cpp +++ b/Libraries/LibWeb/Painting/DisplayListPlayerSkia.cpp @@ -633,7 +633,7 @@ static SkPaint paint_style_to_skia_paint(Painting::SVGGradientPaintStyle const& shader = SkGradientShader::MakeTwoPointConical(start_center, start_radius, end_center, end_radius, colors.data(), positions.data(), color_stops.size(), tile_mode, 0, &matrix); } paint.setShader(shader); - if (auto* gradient_paint_style = as_if(paint_style); gradient_paint_style->color_space() == Gfx::InterpolationColorSpace::LinearRGB) { + if (paint_style.color_space() == Gfx::InterpolationColorSpace::LinearRGB) { paint.setColorFilter(SkColorFilters::LinearToSRGBGamma()); }