LibWeb: Remove unnecessary on_foo hooks from Frame

Frame can just call through the PageClient instead of using hooks.
This commit is contained in:
Andreas Kling 2020-06-08 21:31:53 +02:00
commit e04d68a03a
Notes: sideshowbarker 2024-07-19 05:44:42 +09:00
4 changed files with 5 additions and 22 deletions

View file

@ -66,8 +66,7 @@ void Frame::set_document(Document* document)
if (m_document)
m_document->attach_to_frame({}, *this);
if (on_set_document)
on_set_document(m_document);
page().client().page_did_set_document_in_main_frame(m_document);
}
void Frame::set_size(const Gfx::Size& size)