mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-30 14:20:21 +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:
parent
d1b06af307
commit
476acae04f
Notes:
sideshowbarker
2024-07-17 04:32:07 +09:00
Author: https://github.com/MacDue
Commit: 476acae04f
Pull-request: https://github.com/SerenityOS/serenity/pull/16043
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/LucasChollet
4 changed files with 57 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue