mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 10:15:07 +00:00
LibWebView+Ladybird: Move page loading to ViewImplementation
This commit is contained in:
parent
2428e3e675
commit
de1c0c87fe
6 changed files with 25 additions and 43 deletions
|
@ -74,24 +74,6 @@ void OutOfProcessWebView::create_client()
|
|||
client().async_update_screen_rects(GUI::Desktop::the().rects(), GUI::Desktop::the().main_screen_index());
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::load(const AK::URL& url)
|
||||
{
|
||||
m_url = url;
|
||||
client().async_load_url(url);
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::load_html(StringView html, const AK::URL& url)
|
||||
{
|
||||
m_url = url;
|
||||
client().async_load_html(html, url);
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::load_empty_document()
|
||||
{
|
||||
m_url = {};
|
||||
client().async_load_html("", {});
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::paint_event(GUI::PaintEvent& event)
|
||||
{
|
||||
Super::paint_event(event);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue