mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 15:55:06 +00:00
LibWeb: Remove unnecessary on_foo hooks from Frame
Frame can just call through the PageClient instead of using hooks.
This commit is contained in:
parent
5042e560ef
commit
e04d68a03a
4 changed files with 5 additions and 22 deletions
|
@ -34,16 +34,6 @@ Page::Page(PageClient& client)
|
|||
: m_client(client)
|
||||
{
|
||||
m_main_frame = Frame::create(*this);
|
||||
|
||||
main_frame().on_set_document = [this](auto* document) {
|
||||
m_client.page_did_set_document_in_main_frame(document);
|
||||
};
|
||||
main_frame().on_title_change = [this](auto& title) {
|
||||
m_client.page_did_change_title(title);
|
||||
};
|
||||
main_frame().on_load_start = [this](auto& url) {
|
||||
m_client.page_did_start_loading(url);
|
||||
};
|
||||
}
|
||||
|
||||
Page::~Page()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue