1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:37:34 +00:00

LibWeb: Support painting repeating-linear-gradient()s

This commit is contained in:
MacDue 2022-08-16 17:14:03 +01:00 committed by Andreas Kling
parent ffdcc60b03
commit e294b7929a
2 changed files with 21 additions and 8 deletions

View file

@ -25,6 +25,7 @@ using ColorStopList = Vector<ColorStop, 4>;
struct LinearGradientData {
float gradient_angle;
ColorStopList color_stops;
Optional<float> repeat_length;
};
LinearGradientData resolve_linear_gradient_data(Layout::Node const&, Gfx::FloatSize const&, CSS::LinearGradientStyleValue const&);