mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-04-27 15:03:27 +00:00
LibWeb: Add hook to HtmlView when a new document is set
This commit is contained in:
committed by
Andreas Kling
parent
391237a8e1
commit
51e79a2bbc
@@ -89,6 +89,9 @@ void HtmlView::set_document(Document* new_document)
|
||||
|
||||
main_frame().set_document(new_document);
|
||||
|
||||
if (on_set_document)
|
||||
on_set_document(new_document);
|
||||
|
||||
if (new_document) {
|
||||
new_document->on_layout_updated = [this] {
|
||||
layout_and_sync_size();
|
||||
|
||||
Reference in New Issue
Block a user