mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb: Replace DrawTriangleWave with StrokePathUsingColor
There's no need to have separate display list item for drawing triangle wave when we could simply use StrokePathUsingColor. By switching to StrokePathUsingColor we could also reduce painting because it supports filtering out by bounding box.
This commit is contained in:
parent
3dd8b3230e
commit
e41c85ec47
Notes:
github-actions[bot]
2025-08-03 08:43:58 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: e41c85ec47
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5685
Reviewed-by: https://github.com/gmta ✅
9 changed files with 72 additions and 117 deletions
|
|
@ -51,7 +51,6 @@ private:
|
|||
void draw_rect(DrawRect const&) override;
|
||||
void paint_radial_gradient(PaintRadialGradient const&) override;
|
||||
void paint_conic_gradient(PaintConicGradient const&) override;
|
||||
void draw_triangle_wave(DrawTriangleWave const&) override;
|
||||
void add_rounded_rect_clip(AddRoundedRectClip const&) override;
|
||||
void add_mask(AddMask const&) override;
|
||||
void paint_scrollbar(PaintScrollBar const&) override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue