1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:47:47 +00:00

LibWeb: Move window.scroll{X,Y} from wrapper into DOM::Window

The less we do in WindowObject, the easier it will be to eventually
auto-generate the entire thing.
This commit is contained in:
Andreas Kling 2021-09-24 21:49:31 +02:00
parent 38157a6093
commit 2c0987c93b
3 changed files with 21 additions and 6 deletions

View file

@ -80,6 +80,9 @@ public:
NonnullRefPtr<CSS::CSSStyleDeclaration> get_computed_style(DOM::Element&) const;
NonnullRefPtr<CSS::MediaQueryList> match_media(String);
float scroll_x() const;
float scroll_y() const;
private:
explicit Window(Document&);