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()); }