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

@ -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);