mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 23:56:06 +00:00
LibWeb: Implement css gradient-interpolation-method
This commit is contained in:
parent
02a642b87b
commit
31853c13d3
Notes:
github-actions[bot]
2025-03-06 11:34:14 +00:00
Author: https://github.com/Gingeh
Commit: 31853c13d3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3638
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/LucasChollet
35 changed files with 499 additions and 101 deletions
|
@ -10,6 +10,7 @@
|
|||
#include <AK/Vector.h>
|
||||
#include <LibGfx/Color.h>
|
||||
#include <LibGfx/Gradients.h>
|
||||
#include <LibWeb/CSS/StyleValues/AbstractImageStyleValue.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web::Painting {
|
||||
|
@ -24,15 +25,18 @@ struct ColorStopData {
|
|||
struct LinearGradientData {
|
||||
float gradient_angle;
|
||||
ColorStopData color_stops;
|
||||
CSS::InterpolationMethod interpolation_method;
|
||||
};
|
||||
|
||||
struct ConicGradientData {
|
||||
float start_angle;
|
||||
ColorStopData color_stops;
|
||||
CSS::InterpolationMethod interpolation_method;
|
||||
};
|
||||
|
||||
struct RadialGradientData {
|
||||
ColorStopData color_stops;
|
||||
CSS::InterpolationMethod interpolation_method;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue