LibWeb/Painting: Fix translation for FIllRect command

After 4318bcf447 RecordingPainter
is suppoed to write commands in coordinate system of stacking context.

This commit adds missing translation for FillRect command.
This commit is contained in:
Aliaksandr Kalenik 2023-10-27 17:29:18 +02:00 committed by Andreas Kling
commit 5ef94f0ba8
Notes: sideshowbarker 2024-07-16 23:38:54 +09:00

View file

@ -37,7 +37,7 @@ void RecordingPainter::blit_corner_clipping(NonnullRefPtr<BorderRadiusCornerClip
void RecordingPainter::fill_rect(Gfx::IntRect const& rect, Color color)
{
push_command(FillRect {
.rect = rect,
.rect = state().translation.map(rect),
.color = color,
});
}