mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
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:
parent
5c11a541d3
commit
a41d586117
Notes:
github-actions[bot]
2025-08-03 08:43:46 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: a41d586117
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5685
Reviewed-by: https://github.com/gmta ✅
14 changed files with 42 additions and 96 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue