1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 07:07:44 +00:00

LibWeb: Apply scroll offset to PushStackingContext command

In cases where the stacking context painting requires a separate
bitmap, the destination position needs to be translated by the
scrolling offset to ensure it ends up in the correct position.
This commit is contained in:
Aliaksandr Kalenik 2024-02-01 12:31:31 +01:00 committed by Andreas Kling
parent 384c6cf0f9
commit 5484062095
5 changed files with 150 additions and 1 deletions

View file

@ -122,7 +122,7 @@ struct PushStackingContext {
void translate_by(Gfx::IntPoint const& offset)
{
post_transform_translation.translate_by(offset);
source_paintable_rect.translate_by(offset);
}
};