1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:24:58 +00:00

Ladybird+LibWebView: Migrate layout notification to LibWebView callbacks

This commit is contained in:
Timothy Flynn 2023-08-23 10:33:26 -04:00 committed by Tim Flynn
parent 682a5f9b70
commit bf464665a7
10 changed files with 19 additions and 34 deletions

View file

@ -88,7 +88,8 @@ void WebContentClient::did_request_cursor_change(i32 cursor_type)
void WebContentClient::did_layout(Gfx::IntSize content_size)
{
dbgln_if(SPAM_DEBUG, "handle: WebContentClient::DidLayout! content_size={}", content_size);
m_view.notify_server_did_layout({}, content_size);
if (m_view.on_did_layout)
m_view.on_did_layout(content_size);
}
void WebContentClient::did_change_title(DeprecatedString const& title)