1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +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:
Andreas Kling 2020-07-04 20:57:57 +02:00
parent 8476e3933b
commit a4b5350aff
7 changed files with 27 additions and 0 deletions

View file

@ -104,4 +104,9 @@ void PageHost::page_did_invalidate(const Gfx::IntRect& content_rect)
m_client.post_message(Messages::WebContentClient::DidInvalidateContentRect(content_rect));
}
void PageHost::page_did_change_selection()
{
m_client.post_message(Messages::WebContentClient::DidChangeSelection());
}
}