mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
Ladybird: Send window size and position to WebContent process
This commit is contained in:
parent
24d5bf8173
commit
b51090e83e
Notes:
sideshowbarker
2024-07-17 06:39:26 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: b51090e83e
Pull-request: https://github.com/SerenityOS/serenity/pull/17776
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