Aliaksandr Kalenik
a41d586117
LibWeb: Merge FillPathUsingPaintStyle and FillPathUsingColor
...
Use `Variant<PaintStyle, Gfx::Color>` in new `FillPath` instead of
duplicating two almost identical display list items.
2025-08-03 10:42:33 +02:00
Aliaksandr Kalenik
5c11a541d3
LibWeb: Merge StrokePathUsingPaintStyle and StrokePathUsingColor
...
Use `Variant<PaintStyle, Gfx::Color>` in new `StrokePath` instead of
duplicating two almost identical display list items.
2025-08-03 10:42:33 +02:00
Aliaksandr Kalenik
e41c85ec47
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.
2025-08-03 10:42:33 +02:00
Aliaksandr Kalenik
b265618bfb
LibWeb: Rename Command to DisplayListCommand
...
Gives name more consistent with other display list related classes.
2025-08-01 05:25:56 -04:00