mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Avoid Vector filtering when performing find in page queries
This commit is contained in:
committed by
Tim Ledbetter
parent
26f32b11f9
commit
c322603c42
Notes:
github-actions[bot]
2024-11-24 19:29:20 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/c322603c420 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2550 Reviewed-by: https://github.com/awesomekling ✅
@@ -513,7 +513,7 @@ void EventLoop::perform_a_microtask_checkpoint()
|
||||
// FIXME: 8. Record timing info for microtask checkpoint.
|
||||
}
|
||||
|
||||
Vector<GC::Root<DOM::Document>> EventLoop::documents_in_this_event_loop_matching(auto callback) const
|
||||
Vector<GC::Root<DOM::Document>> EventLoop::documents_in_this_event_loop_matching(Function<bool(DOM::Document&)> callback) const
|
||||
{
|
||||
Vector<GC::Root<DOM::Document>> documents;
|
||||
for (auto& document : m_documents) {
|
||||
|
||||
Reference in New Issue
Block a user