mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 04:47:34 +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:
parent
384c6cf0f9
commit
5484062095
5 changed files with 150 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue