mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-12 02:30:30 +09:00
LibWebView+Ladybird: Move page loading to ViewImplementation
This commit is contained in:
parent
2428e3e675
commit
de1c0c87fe
Notes:
sideshowbarker
2024-07-17 01:47:14 +09:00
Author: https://github.com/linusg
Commit: de1c0c87fe
Pull-request: https://github.com/SerenityOS/serenity/pull/16983
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