mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
Ladybird+LibWebView: Migrate layout notification to LibWebView callbacks
This commit is contained in:
@@ -29,6 +29,10 @@ OutOfProcessWebView::OutOfProcessWebView()
|
||||
|
||||
create_client();
|
||||
|
||||
on_did_layout = [this](auto content_size) {
|
||||
set_content_size(content_size);
|
||||
};
|
||||
|
||||
on_ready_to_paint = [this]() {
|
||||
update();
|
||||
};
|
||||
@@ -184,11 +188,6 @@ void OutOfProcessWebView::notify_server_did_request_cursor_change(Badge<WebConte
|
||||
set_override_cursor(cursor);
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::notify_server_did_layout(Badge<WebContentClient>, Gfx::IntSize content_size)
|
||||
{
|
||||
set_content_size(content_size);
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::notify_server_did_request_scroll(Badge<WebContentClient>, i32 x_delta, i32 y_delta)
|
||||
{
|
||||
horizontal_scrollbar().increase_slider_by(x_delta);
|
||||
|
||||
Reference in New Issue
Block a user