LibWeb: Implement css gradient-interpolation-method

This commit is contained in:
Gingeh 2025-02-19 21:02:12 +11:00 committed by Sam Atkins
commit 31853c13d3
Notes: github-actions[bot] 2025-03-06 11:34:14 +00:00
35 changed files with 499 additions and 101 deletions

View file

@ -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;
};
}