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:
parent
24d5bf8173
commit
b51090e83e
4 changed files with 32 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue