1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:47:34 +00:00

LibWeb: Add document_fully_loaded event to DocumentObserver

SVGUseElement needs to be able to query the fully loaded document for
its referenced element.
This commit is contained in:
PrestonLTaylor 2023-05-30 21:05:49 +01:00 committed by Andreas Kling
parent 31d536912c
commit b322abd8d0
2 changed files with 6 additions and 0 deletions

View file

@ -1679,6 +1679,11 @@ void Document::completely_finish_loading()
container->dispatch_event(DOM::Event::create(container->realm(), HTML::EventNames::load).release_value_but_fixme_should_propagate_errors());
});
}
for (auto& document_observer : m_document_observers) {
if (document_observer->document_fully_loaded)
document_observer->document_fully_loaded();
}
}
DeprecatedString Document::cookie(Cookie::Source source)