LibWeb: Merge StrokePathUsingPaintStyle and StrokePathUsingColor

Use `Variant<PaintStyle, Gfx::Color>` in new `StrokePath` instead of
duplicating two almost identical display list items.
This commit is contained in:
Aliaksandr Kalenik 2025-08-02 20:04:12 +02:00 committed by Jelle Raaijmakers
commit 5c11a541d3
Notes: github-actions[bot] 2025-08-03 08:43:52 +00:00
12 changed files with 37 additions and 114 deletions

View file

@ -147,14 +147,9 @@ void FillPathUsingPaintStyle::dump(StringBuilder& builder) const
builder.appendff("FillPathUsingPaintStyle");
}
void StrokePathUsingColor::dump(StringBuilder& builder) const
void StrokePath::dump(StringBuilder& builder) const
{
builder.appendff("StrokePathUsingColor");
}
void StrokePathUsingPaintStyle::dump(StringBuilder& builder) const
{
builder.appendff("StrokePathUsingPaintStyle");
builder.appendff("StrokePath");
}
void DrawEllipse::dump(StringBuilder& builder) const