LibWeb: Skip documents of decoded SVGs while processing HTML event loop

None of HTML event loop processing steps are relevant for decoded SVGs,
so we can simply skip them while collecting documents for processing.
This commit is contained in:
Aliaksandr Kalenik 2024-08-18 21:25:04 +02:00 committed by Andreas Kling
parent 00f03f3e90
commit c87214d79c
Notes: github-actions[bot] 2024-08-19 07:05:54 +00:00
2 changed files with 2 additions and 6 deletions

View file

@ -495,6 +495,8 @@ Vector<JS::Handle<DOM::Document>> EventLoop::documents_in_this_event_loop() cons
Vector<JS::Handle<DOM::Document>> documents;
for (auto& document : m_documents) {
VERIFY(document);
if (document->is_decoded_svg())
continue;
documents.append(JS::make_handle(*document));
}
return documents;