1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:48:14 +00:00

LibWebView+Ladybird: Move page loading to ViewImplementation

This commit is contained in:
Linus Groh 2023-01-12 20:30:06 +00:00 committed by Andreas Kling
parent 2428e3e675
commit de1c0c87fe
6 changed files with 25 additions and 43 deletions

View file

@ -82,18 +82,6 @@ WebContentView::~WebContentView()
close_sub_widgets();
}
void WebContentView::load(AK::URL const& url)
{
m_url = url;
client().async_load_url(url);
}
void WebContentView::load_html(StringView html, AK::URL const& url)
{
m_url = url;
client().async_load_html(html, url);
}
unsigned get_button_from_qt_event(QMouseEvent const& event)
{
if (event.button() == Qt::MouseButton::LeftButton)