1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:48:12 +00:00

LibWeb: Use the correct painter for painting stacking contexts

When cloning the PaintContext we should be using the painter backed by
the bitmap created for this stacking context layer.

Fixes: 54c3053bc3 ("LibWeb: Preserve paint state when painting...")
This commit is contained in:
Simon Wanner 2022-04-08 19:42:57 +02:00 committed by Andreas Kling
parent a57bfc2f8c
commit a2d89f11d1
2 changed files with 3 additions and 3 deletions

View file

@ -262,7 +262,7 @@ void StackingContext::paint(PaintContext& context) const
return;
auto bitmap = bitmap_or_error.release_value_but_fixme_should_propagate_errors();
Gfx::Painter painter(bitmap);
auto paint_context = context.clone();
auto paint_context = context.clone(painter);
paint_internal(paint_context);
auto transform_origin = this->transform_origin();