mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:02:43 +00:00 
			
		
		
		
	LibHTML: Create some subdirectories.
This commit is contained in:
		
							parent
							
								
									0522a8f71c
								
							
						
					
					
						commit
						1f51c2b7da
					
				
					 25 changed files with 49 additions and 50 deletions
				
			
		
							
								
								
									
										11
									
								
								LibHTML/DOM/ParentNode.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								LibHTML/DOM/ParentNode.cpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | |||
| #include <LibHTML/DOM/ParentNode.h> | ||||
| 
 | ||||
| void ParentNode::append_child(Retained<Node> node) | ||||
| { | ||||
|     if (m_last_child) | ||||
|         m_last_child->set_next_sibling(node.ptr()); | ||||
|     node->set_parent_node({}, this); | ||||
|     m_last_child = &node.leak_ref(); | ||||
|     if (!m_first_child) | ||||
|         m_first_child = m_last_child; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling