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

Ladybird: Send window size and position to WebContent process

This commit is contained in:
Aliaksandr Kalenik 2023-03-08 23:57:24 +03:00 committed by Andreas Kling
parent 24d5bf8173
commit b51090e83e
4 changed files with 32 additions and 1 deletions

View file

@ -452,6 +452,16 @@ void WebContentView::set_viewport_rect(Gfx::IntRect rect)
client().async_set_viewport_rect(rect);
}
void WebContentView::set_window_size(Gfx::IntSize size)
{
client().async_set_window_size(size);
}
void WebContentView::set_window_position(Gfx::IntPoint position)
{
client().async_set_window_position(position);
}
void WebContentView::update_viewport_rect()
{
auto scaled_width = int(viewport()->width() / m_inverse_pixel_scaling_ratio);