mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-24 02:09:28 +00:00
LibWeb: Flesh out a chunk of the HTML spec's frame navigation algorithms
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user