mirror of
https://github.com/RGBCube/serenity
synced 2025-06-28 18:52:12 +00:00
Ladybird+LibWebView: Move APIs which only repaint to LibWebView
We can easily add hooks to notify the browsers of these events if any implementation-specific handling is needed in the future, but for now, these only repaint the client, which we can do in ViewImplementation.
This commit is contained in:
parent
ea7e1b5f53
commit
682a5f9b70
10 changed files with 14 additions and 42 deletions
|
@ -67,13 +67,13 @@ void WebContentClient::did_invalidate_content_rect(Gfx::IntRect const& content_r
|
|||
dbgln_if(SPAM_DEBUG, "handle: WebContentClient::DidInvalidateContentRect! content_rect={}", content_rect);
|
||||
|
||||
// FIXME: Figure out a way to coalesce these messages to reduce unnecessary painting
|
||||
m_view.notify_server_did_invalidate_content_rect({}, content_rect);
|
||||
m_view.server_did_invalidate_content_rect({}, content_rect);
|
||||
}
|
||||
|
||||
void WebContentClient::did_change_selection()
|
||||
{
|
||||
dbgln_if(SPAM_DEBUG, "handle: WebContentClient::DidChangeSelection!");
|
||||
m_view.notify_server_did_change_selection({});
|
||||
m_view.server_did_change_selection({});
|
||||
}
|
||||
|
||||
void WebContentClient::did_request_cursor_change(i32 cursor_type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue