mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-24 17:09:43 +00:00
LibWeb+WebContent+WebDriver+UI: Make window rect updates asynchronous
It's currently possible for window size/position updates to hang, as the underlying IPCs are synchronous. This updates the WebDriver endpoint to be async, to unblock the WebContent process while the update is ongoing. The UI process is now responsible for informing WebContent when the update is complete.
This commit is contained in:
parent
42984a10e9
commit
fa83cc722c
Notes:
github-actions[bot]
2024-10-29 11:04:46 +00:00
Author: https://github.com/trflynn89
Commit: fa83cc722c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2028
Reviewed-by: https://github.com/tcl3 ✅
22 changed files with 94 additions and 43 deletions
|
|
@ -87,6 +87,11 @@ void ViewImplementation::set_window_size(Gfx::IntSize size)
|
|||
client().async_set_window_size(m_client_state.page_index, size.to_type<Web::DevicePixels>());
|
||||
}
|
||||
|
||||
void ViewImplementation::did_update_window_rect()
|
||||
{
|
||||
client().async_did_update_window_rect(m_client_state.page_index);
|
||||
}
|
||||
|
||||
void ViewImplementation::load(URL::URL const& url)
|
||||
{
|
||||
m_url = url;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue