1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:27:35 +00:00

LibWeb: Add support for the SVG gradient spreadMethod attribute

This commit is contained in:
MacDue 2023-08-20 15:45:02 +01:00 committed by Andreas Kling
parent 1ecb2cf28c
commit 46f42d9755
6 changed files with 52 additions and 0 deletions

View file

@ -131,6 +131,7 @@ Optional<Gfx::PaintStyle const&> SVGLinearGradientElement::to_gfx_paint_style(SV
}
m_paint_style->set_gradient_transform(gradient_paint_transform(paint_context));
m_paint_style->set_spread_method(to_gfx_spread_method(spread_method()));
return *m_paint_style;
}