mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-26 12:17:52 +00:00
LibWeb: Remove unnecessary as_if<SVGGradientPaintStyle>() 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.
This commit is contained in:
parent
1f1adb6d7e
commit
f7442ae907
Notes:
github-actions[bot]
2025-08-17 20:19:39 +00:00
Author: https://github.com/kennethmyhra
Commit: f7442ae907
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5888
Reviewed-by: https://github.com/tcl3 ✅
1 changed files with 1 additions and 1 deletions
|
@ -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<SVGGradientPaintStyle>(paint_style); gradient_paint_style->color_space() == Gfx::InterpolationColorSpace::LinearRGB) {
|
||||
if (paint_style.color_space() == Gfx::InterpolationColorSpace::LinearRGB) {
|
||||
paint.setColorFilter(SkColorFilters::LinearToSRGBGamma());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue