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

LibWeb: Paint radial-gradient()s

This almost looks too easy now :^), but it's just another way to sample
the gradient line.
This commit is contained in:
MacDue 2022-11-13 00:33:42 +00:00 committed by Sam Atkins
parent d1b06af307
commit 476acae04f
4 changed files with 57 additions and 3 deletions

View file

@ -1271,6 +1271,14 @@ private:
Size m_size;
PositionValue m_position;
Vector<LinearColorStopListElement> m_color_stop_list;
struct ResolvedData {
Painting::RadialGradientData data;
Gfx::FloatSize gradient_size;
Gfx::FloatPoint center;
};
mutable Optional<ResolvedData> m_resolved;
};
class ConicGradientStyleValue final : public AbstractImageStyleValue {