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
7 changed files with 25 additions and 0 deletions

View File

@@ -52,6 +52,12 @@ void OutOfProcessWebView::load(const URL& url)
client().post_message(Messages::WebContentServer::LoadURL(url));
}
void OutOfProcessWebView::load_html(const StringView& html, const URL& url)
{
m_url = url;
client().post_message(Messages::WebContentServer::LoadHTML(html, url));
}
void OutOfProcessWebView::paint_event(GUI::PaintEvent& event)
{
GUI::ScrollableWidget::paint_event(event);