mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:22:43 +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
				
			
		|  | @ -271,17 +271,17 @@ String Element::inner_html() const | |||
|         for (auto* child = node.first_child(); child; child = child->next_sibling()) { | ||||
|             if (child->is_element()) { | ||||
|                 builder.append('<'); | ||||
|                 builder.append(to<Element>(*child).local_name()); | ||||
|                 builder.append(downcast<Element>(*child).local_name()); | ||||
|                 builder.append('>'); | ||||
| 
 | ||||
|                 recurse(*child); | ||||
| 
 | ||||
|                 builder.append("</"); | ||||
|                 builder.append(to<Element>(*child).local_name()); | ||||
|                 builder.append(downcast<Element>(*child).local_name()); | ||||
|                 builder.append('>'); | ||||
|             } | ||||
|             if (child->is_text()) { | ||||
|                 builder.append(to<Text>(*child).data()); | ||||
|                 builder.append(downcast<Text>(*child).data()); | ||||
|             } | ||||
|         } | ||||
|     }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling