mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:22:43 +00:00 
			
		
		
		
	LibWeb: Flesh out a chunk of the HTML spec's frame navigation algorithms
This commit is contained in:
		
							parent
							
								
									e5f6d36616
								
							
						
					
					
						commit
						4ee5dfbe4b
					
				
					 8 changed files with 479 additions and 8 deletions
				
			
		|  | @ -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); | ||||
|     }); | ||||
| } | ||||
| 
 | ||||
| } | ||||
|  |  | |||
|  | @ -31,6 +31,8 @@ public: | |||
|         return m_tasks.take_first(); | ||||
|     } | ||||
| 
 | ||||
|     void remove_tasks_matching(Function<bool(HTML::Task const&)>); | ||||
| 
 | ||||
| private: | ||||
|     HTML::EventLoop& m_event_loop; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling