1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:17:46 +00:00

LibWeb: Move scroll_offset() from Layout::Box to PaintableBox

Nodes in layout tree should not be aware of scroll state.
This commit is contained in:
Aliaksandr Kalenik 2023-08-06 20:51:46 +02:00 committed by Andreas Kling
parent 23a07a8ab6
commit 5b7926fa53
6 changed files with 23 additions and 26 deletions

View file

@ -38,6 +38,7 @@ public:
CSSPixelRect absolute_rect() const;
CSSPixelPoint effective_offset() const;
CSSPixelPoint scroll_offset() const;
void scroll_by(int delta_x, int delta_y);
void set_offset(CSSPixelPoint);