mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-28 15:28:55 +00:00
LibWeb: Add OutOfProcessWebView::load_html()
This commit is contained in:
parent
216ccaf805
commit
e40135fefd
Notes:
sideshowbarker
2024-07-19 01:58:16 +09:00
Author: https://github.com/linusg
Commit: e40135fefd
Pull-request: https://github.com/SerenityOS/serenity/pull/3727
7 changed files with 25 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue