mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:37:34 +00:00
WebContent: Allow the WebContent process to trigger repaints
After layout, we may want to repaint the page, so we now listen for the PageClient::page_did_invalidate() notification and use it to drive a client-side repaint. Note that an invalidation request from LibWeb makes a full roundtrip to the WebContent client and back since the client drives painting.
This commit is contained in:
parent
c45c5ded34
commit
0bac2ad3b3
8 changed files with 36 additions and 6 deletions
|
@ -38,7 +38,7 @@ static HashMap<int, RefPtr<ClientConnection>> s_connections;
|
|||
|
||||
ClientConnection::ClientConnection(Core::LocalSocket& socket, int client_id)
|
||||
: IPC::ClientConnection<WebContentServerEndpoint>(*this, socket, client_id)
|
||||
, m_page_host(PageHost::create())
|
||||
, m_page_host(PageHost::create(*this))
|
||||
{
|
||||
s_connections.set(client_id, *this);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue