LibWeb: Support window.screen{X,Y,Left,Top}

Some sites query these properties for whatever reason, so let's support
them. (But let's always pretend the screen coordinates are (0, 0))
This commit is contained in:
Andreas Kling 2021-09-29 00:15:26 +02:00
commit 63d971d33b
Notes: sideshowbarker 2024-07-18 03:21:45 +09:00
4 changed files with 61 additions and 0 deletions

View file

@ -89,6 +89,9 @@ public:
float device_pixel_ratio() const;
int screen_x() const;
int screen_y() const;
private:
explicit Window(Document&);