mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 14:48:15 +00:00
WebContent: Notify client when web content selection changes
The WebContentView widgets reacts to this by requesting a repaint.
This commit is contained in:
@@ -60,3 +60,9 @@ void WebContentClient::handle(const Messages::WebContentClient::DidInvalidateCon
|
||||
// FIXME: Figure out a way to coalesce these messages to reduce unnecessary painting
|
||||
m_view.notify_server_did_invalidate_content_rect({}, message.content_rect());
|
||||
}
|
||||
|
||||
void WebContentClient::handle(const Messages::WebContentClient::DidChangeSelection&)
|
||||
{
|
||||
dbg() << "handle: WebContentClient::DidChangeSelection!";
|
||||
m_view.notify_server_did_change_selection({});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user