mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:17:44 +00:00
LibWeb: Support window.devicePixelRatio
This always returns 1 for now. I've added a FIXME about returning 2 in HiDPI mode.
This commit is contained in:
parent
e26e85a3d2
commit
7410736b0f
4 changed files with 19 additions and 0 deletions
|
@ -81,6 +81,8 @@ private:
|
|||
|
||||
JS_DECLARE_NATIVE_FUNCTION(parent_getter);
|
||||
|
||||
JS_DECLARE_NATIVE_FUNCTION(device_pixel_ratio_getter);
|
||||
|
||||
JS_DECLARE_NATIVE_GETTER(scroll_x_getter);
|
||||
JS_DECLARE_NATIVE_GETTER(scroll_y_getter);
|
||||
JS_DECLARE_NATIVE_FUNCTION(scroll);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue