LibWeb: Add OutOfProcessWebView::load_html()

This commit is contained in:
Linus Groh 2020-10-08 21:11:01 +01:00 committed by Andreas Kling
parent 216ccaf805
commit e40135fefd
Notes: sideshowbarker 2024-07-19 01:58:16 +09:00
7 changed files with 25 additions and 0 deletions

View file

@ -91,6 +91,14 @@ void ClientConnection::handle(const Messages::WebContentServer::LoadURL& message
page().load(message.url());
}
void ClientConnection::handle(const Messages::WebContentServer::LoadHTML& message)
{
#ifdef DEBUG_SPAM
dbg() << "handle: WebContentServer::LoadHTML: html=" << message.html() << ", url=" << message.url();
#endif
page().load_html(message.html(), message.url());
}
void ClientConnection::handle(const Messages::WebContentServer::SetViewportRect& message)
{
#ifdef DEBUG_SPAM