LibWeb: Merge FillPathUsingPaintStyle and FillPathUsingColor

Use `Variant<PaintStyle, Gfx::Color>` in new `FillPath` instead of
duplicating two almost identical display list items.
This commit is contained in:
Aliaksandr Kalenik 2025-08-02 21:16:51 +02:00 committed by Jelle Raaijmakers
parent 5c11a541d3
commit a41d586117
Notes: github-actions[bot] 2025-08-03 08:43:46 +00:00
14 changed files with 42 additions and 96 deletions

View file

@ -40,8 +40,7 @@ private:
void paint_inner_box_shadow(PaintInnerBoxShadow const&) override;
void paint_text_shadow(PaintTextShadow const&) override;
void fill_rect_with_rounded_corners(FillRectWithRoundedCorners const&) override;
void fill_path_using_color(FillPathUsingColor const&) override;
void fill_path_using_paint_style(FillPathUsingPaintStyle const&) override;
void fill_path(FillPath const&) override;
void stroke_path(StrokePath const&) override;
void draw_ellipse(DrawEllipse const&) override;
void fill_ellipse(FillEllipse const&) override;