mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-01 06:07:59 +00:00
LibWeb: Add OutOfProcessWebView::load_html()
This commit is contained in:
committed by
Andreas Kling
parent
216ccaf805
commit
e40135fefd
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user