mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 05:42:43 +00:00 
			
		
		
		
	 2960bf4ec8
			
		
	
	
		2960bf4ec8
		
	
	
	
	
		
			
			The paintable tree structure more closely matches the painting order when fragments are owned by corresponding inline paintables. This change does not affect the layout tree, as it is more convenient for layout purposes to have all fragments owned by a block container in one place. Additionally, this improves performance significantly on pages with many fragments, as we no longer have to walk the ancestor chain up to the closest block container to determine if a fragment belongs to an inline paintable.
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			748 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			748 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| Viewport <#document> at (0,0) content-size 800x600 children: inline
 | |
|   InlineNode <html>
 | |
|     InlineNode <head>
 | |
|       InlineNode <style>
 | |
|         frag 0 from TextNode start: 1, length: 18, rect: [0,0 134.984375x17] baseline: 13.296875
 | |
|             "* { all: unset; } "
 | |
|         TextNode <#text>
 | |
|     InlineNode <body>
 | |
|       frag 0 from TextNode start: 0, length: 13, rect: [135,0 103.140625x17] baseline: 13.296875
 | |
|           "Hello friends"
 | |
|       TextNode <#text>
 | |
| 
 | |
| ViewportPaintable (Viewport<#document>) [0,0 800x600]
 | |
|   InlinePaintable (InlineNode<HTML>)
 | |
|     InlinePaintable (InlineNode<HEAD>)
 | |
|       InlinePaintable (InlineNode<STYLE>)
 | |
|         TextPaintable (TextNode<#text>)
 | |
|     InlinePaintable (InlineNode<BODY>)
 | |
|       TextPaintable (TextNode<#text>)
 |