1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-17 20:45:09 +00:00

LibWeb: Make the WebContentView::on_load_start hook actually work :^)

This commit is contained in:
Andreas Kling 2020-07-06 21:58:16 +02:00
parent a94ef9e021
commit 9169c8ca94
7 changed files with 20 additions and 0 deletions

View file

@ -150,6 +150,12 @@ void WebContentView::notify_server_did_middle_click_link(Badge<WebContentClient>
on_link_middle_click(url, target, modifiers);
}
void WebContentView::notify_server_did_start_loading(Badge<WebContentClient>, const URL& url)
{
if (on_load_start)
on_load_start(url);
}
void WebContentView::did_scroll()
{
client().post_message(Messages::WebContentServer::SetViewportRect(visible_content_rect()));