1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:57:35 +00:00

LibWeb: Implement Window.scroll{X,Y} JS properties

...and pageXOffset/pageYOffset too, since those are just aliases for the
same thing.
This commit is contained in:
Sam Atkins 2021-09-08 12:22:28 +01:00 committed by Linus Groh
parent 83414af9f3
commit 9588a377ec
3 changed files with 35 additions and 0 deletions

View file

@ -52,6 +52,7 @@ public:
void set_needs_display(Gfx::IntRect const&);
Gfx::IntPoint const& viewport_scroll_offset() const { return m_viewport_scroll_offset; }
void set_viewport_scroll_offset(Gfx::IntPoint const&);
Gfx::IntRect viewport_rect() const { return { m_viewport_scroll_offset, m_size }; }
void set_viewport_rect(Gfx::IntRect const&);