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

Ladybird+LibWebView: Move most of paint handling to LibWebView

Storing the backup bitmap is the same across Browser and Ladybird. Just
peform that work in LibWebView, and handle only the implementation-
specific nuances within the browsers.
This commit is contained in:
Timothy Flynn 2023-05-20 10:50:05 -04:00 committed by Tim Flynn
parent 15da77f4c4
commit ea7e1b5f53
10 changed files with 34 additions and 63 deletions

View file

@ -25,7 +25,7 @@ void WebContentClient::die()
void WebContentClient::did_paint(Gfx::IntRect const& rect, i32 bitmap_id)
{
m_view.notify_server_did_paint({}, bitmap_id, rect.size());
m_view.server_did_paint({}, bitmap_id, rect.size());
}
void WebContentClient::did_start_loading(AK::URL const& url, bool is_redirect)