mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 06:02:44 +00:00 
			
		
		
		
	LibWeb: Switch to using AK::is and AK::downcast
This commit is contained in:
		
							parent
							
								
									fe6474e692
								
							
						
					
					
						commit
						71556e39a4
					
				
					 73 changed files with 249 additions and 433 deletions
				
			
		|  | @ -43,10 +43,8 @@ private: | |||
|     virtual RefPtr<LayoutNode> create_layout_node(const StyleProperties* parent_style) override; | ||||
| }; | ||||
| 
 | ||||
| template<> | ||||
| inline bool is<Text>(const Node& node) | ||||
| { | ||||
|     return node.is_text(); | ||||
| } | ||||
| 
 | ||||
| } | ||||
| AK_BEGIN_TYPE_TRAITS(Web::Text) | ||||
| static bool is_type(const Web::Node& node) { return node.is_text(); } | ||||
| AK_END_TYPE_TRAITS() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling