mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:07:46 +00:00
LibWeb: Paint repeating-conic-gradient()
s
Shares the same machinery as linear-gradient()s so this is quite easy.
This commit is contained in:
parent
2c2b9fb1d7
commit
7e21fe61b4
2 changed files with 43 additions and 42 deletions
|
@ -22,15 +22,19 @@ struct ColorStop {
|
|||
|
||||
using ColorStopList = Vector<ColorStop, 4>;
|
||||
|
||||
struct ColorStopData {
|
||||
ColorStopList list;
|
||||
Optional<float> repeat_length;
|
||||
};
|
||||
|
||||
struct LinearGradientData {
|
||||
float gradient_angle;
|
||||
ColorStopList color_stops;
|
||||
Optional<float> repeat_length;
|
||||
ColorStopData color_stops;
|
||||
};
|
||||
|
||||
struct ConicGradientData {
|
||||
float start_angle;
|
||||
ColorStopList color_stops;
|
||||
ColorStopData color_stops;
|
||||
};
|
||||
|
||||
LinearGradientData resolve_linear_gradient_data(Layout::Node const&, Gfx::FloatSize const&, CSS::LinearGradientStyleValue const&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue