LibWeb: Flesh out a chunk of the HTML spec's frame navigation algorithms

This commit is contained in:
Andreas Kling 2022-09-19 17:46:34 +02:00
parent e5f6d36616
commit 4ee5dfbe4b
Notes: sideshowbarker 2024-07-17 06:49:58 +09:00
8 changed files with 479 additions and 8 deletions

View file

@ -40,4 +40,11 @@ bool TaskQueue::has_runnable_tasks() const
return false;
}
void TaskQueue::remove_tasks_matching(Function<bool(HTML::Task const&)> filter)
{
m_tasks.remove_all_matching([&](auto& task) {
return filter(*task);
});
}
}