mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:58:13 +00:00
LibWeb+WebContent: Add WebContentClient::did_request_scroll_to() call
This call sets the absolute scroll position for the window.
This commit is contained in:
parent
a09219159c
commit
83414af9f3
8 changed files with 21 additions and 0 deletions
|
@ -241,6 +241,12 @@ void OutOfProcessWebView::notify_server_did_request_scroll(Badge<WebContentClien
|
|||
vertical_scrollbar().set_value(vertical_scrollbar().value() + y_delta);
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::notify_server_did_request_scroll_to(Badge<WebContentClient>, Gfx::IntPoint const& scroll_position)
|
||||
{
|
||||
horizontal_scrollbar().set_value(scroll_position.x());
|
||||
vertical_scrollbar().set_value(scroll_position.y());
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::notify_server_did_request_scroll_into_view(Badge<WebContentClient>, const Gfx::IntRect& rect)
|
||||
{
|
||||
scroll_into_view(rect, true, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue