mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
Userland: Update IPC calls to use proxies
This updates all existing code to use the auto-generated client methods instead of post_message/send_sync.
This commit is contained in:
committed by
Andreas Kling
parent
78803ce384
commit
5bb79ea0a7
@@ -135,7 +135,7 @@ void ClientConnection::flush_pending_paint_requests()
|
||||
{
|
||||
for (auto& pending_paint : m_pending_paint_requests) {
|
||||
m_page_host->paint(pending_paint.content_rect, *pending_paint.bitmap);
|
||||
post_message(Messages::WebContentClient::DidPaint(pending_paint.content_rect, pending_paint.bitmap_id));
|
||||
async_did_paint(pending_paint.content_rect, pending_paint.bitmap_id);
|
||||
}
|
||||
m_pending_paint_requests.clear();
|
||||
}
|
||||
@@ -209,7 +209,7 @@ void ClientConnection::debug_request(const String& request, const String& argume
|
||||
void ClientConnection::get_source()
|
||||
{
|
||||
if (auto* doc = page().main_frame().document()) {
|
||||
post_message(Messages::WebContentClient::DidGetSource(doc->url(), doc->source()));
|
||||
async_did_get_source(doc->url(), doc->source());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user