LibWeb+WebContent: Add WebContentClient::did_request_scroll_to() call

This call sets the absolute scroll position for the window.
This commit is contained in:
Sam Atkins 2021-09-08 11:44:36 +01:00 committed by Linus Groh
commit 83414af9f3
Notes: sideshowbarker 2024-07-18 04:16:23 +09:00
8 changed files with 21 additions and 0 deletions

View file

@ -73,6 +73,11 @@ void WebContentClient::did_request_scroll(i32 x_delta, i32 y_delta)
m_view.notify_server_did_request_scroll({}, x_delta, y_delta);
}
void WebContentClient::did_request_scroll_to(Gfx::IntPoint const& scroll_position)
{
m_view.notify_server_did_request_scroll_to({}, scroll_position);
}
void WebContentClient::did_request_scroll_into_view(Gfx::IntRect const& rect)
{
dbgln_if(SPAM_DEBUG, "handle: WebContentClient::DidRequestScrollIntoView! rect={}", rect);