mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:47: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:
parent
83414af9f3
commit
9588a377ec
3 changed files with 35 additions and 0 deletions
|
@ -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&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue