mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 22:52:10 +02:00
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. (cherry picked from commit c87214d79cf834ee9b7b4da65e902e5233c0a5cc)
This commit is contained in:
committed by
Nico Weber
parent
30e505a630
commit
8e3b7e3680
@@ -487,6 +487,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;
|
||||
|
||||
Reference in New Issue
Block a user