mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:17:42 +00:00
WebContent: Add IPC for setting 'device pixels per CSS pixel'
This commit is contained in:
parent
075b4ca4d0
commit
f3b6b50ee0
4 changed files with 9 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 2020-2022, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2021, Sam Atkins <atkinssj@serenityos.org>
|
||||
* Copyright (c) 2021-2022, Linus Groh <linusg@serenityos.org>
|
||||
* Copyright (c) 2021-2023, Linus Groh <linusg@serenityos.org>
|
||||
* Copyright (c) 2022, Tobias Christiansen <tobyase@serenityos.org>
|
||||
* Copyright (c) 2022, Tim Flynn <trflynn89@serenityos.org>
|
||||
*
|
||||
|
@ -530,6 +530,11 @@ void ConnectionFromClient::set_is_scripting_enabled(bool is_scripting_enabled)
|
|||
m_page_host->set_is_scripting_enabled(is_scripting_enabled);
|
||||
}
|
||||
|
||||
void ConnectionFromClient::set_device_pixels_per_css_pixel(float device_pixels_per_css_pixel)
|
||||
{
|
||||
m_page_host->set_device_pixels_per_css_pixel(device_pixels_per_css_pixel);
|
||||
}
|
||||
|
||||
void ConnectionFromClient::set_window_position(Gfx::IntPoint position)
|
||||
{
|
||||
m_page_host->set_window_position(position.to_type<Web::DevicePixels>());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue