mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-22 09:18:55 +00:00
LibWeb: Fix clip of hidden overflow when translated boxes are involved
There is a problem with current approach where overflow clip rectange is calculated by aggregating intersection of absolute padding boxes of boxes in containing block chain that resulting rectangle doesn't respect transform properties. To solve this problem `PaintableBox` is changed to store clip rectangle saved from painter because it does respect transform properties of all previously applied clip rectangles.
This commit is contained in:
parent
b0846ec78a
commit
ee4ba7617c
Notes:
sideshowbarker
2024-07-17 16:42:19 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: ee4ba7617c
Pull-request: https://github.com/SerenityOS/serenity/pull/17169
Reviewed-by: https://github.com/awesomekling
3 changed files with 18 additions and 24 deletions
|
@ -177,6 +177,7 @@ public:
|
|||
}
|
||||
|
||||
IntRect clip_rect() const { return state().clip_rect; }
|
||||
void set_clip_rect(IntRect const& rect) { state().clip_rect = rect; }
|
||||
|
||||
int scale() const { return state().scale; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue