mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 05:52:46 +00:00 
			
		
		
		
	 28fdc7af05
			
		
	
	
		28fdc7af05
		
	
	
	
	
		
			
			When toggling `display: none` on an element, it can go from having a layout subtree to not having one. In the `none` case, we were previously leaving stale layout nodes hanging off DOM nodes in the subtree. These layout nodes could be queried for outdated information and probably other things that we shouldn't allow. Fix this by having TreeBuilder prune any old layout nodes hanging off nodes in a subtree after its subtree root doesn't produce a layout node.
		
			
				
	
	
		
			2 lines
		
	
	
	
		
			6 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			2 lines
		
	
	
	
		
			6 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| 100
 | |
| 0
 |