mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:57:34 +00:00
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:
parent
0a90d466a0
commit
63d971d33b
4 changed files with 61 additions and 0 deletions
|
@ -89,6 +89,9 @@ public:
|
|||
|
||||
float device_pixel_ratio() const;
|
||||
|
||||
int screen_x() const;
|
||||
int screen_y() const;
|
||||
|
||||
private:
|
||||
explicit Window(Document&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue