mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:02:45 +00:00 
			
		
		
		
	 de32b77ceb
			
		
	
	
		de32b77ceb
		
	
	
	
	
		
			
			This is a part of refactoring towards making the paintable tree independent of the layout tree. Now, instead of transferring text fragments from the layout tree to the paintable tree during the layout commit phase, we allocate separate PaintableFragments that contain only the information necessary for painting. Doing this also allows us to get rid LineBoxes, as they are used only during layout.
		
			
				
	
	
		
			58 lines
		
	
	
	
		
			3.2 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
	
		
			3.2 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| Viewport <#document> at (0,0) content-size 800x600 children: not-inline
 | |
|   BlockContainer <html> at (0,0) content-size 800x470 [BFC] children: not-inline
 | |
|     BlockContainer <body> at (8,8) content-size 784x454 children: not-inline
 | |
|       BlockContainer <(anonymous)> at (8,8) content-size 784x22 children: inline
 | |
|         frag 0 from TextNode start: 0, length: 40, rect: [8,8 391.65625x22] baseline: 17
 | |
|             "Variable set by inline style of element:"
 | |
|         TextNode <#text>
 | |
|         BreakNode <br>
 | |
|         TextNode <#text>
 | |
|       BlockContainer <div.a> at (8,30) content-size 784x100 children: inline
 | |
|         frag 0 from BlockContainer start: 0, length: 0, rect: [8,30 200x100] baseline: 100
 | |
|         BlockContainer <(anonymous)> at (8,30) content-size 200x100 inline-block [BFC] children: inline
 | |
|           TextNode <#text>
 | |
|       BlockContainer <(anonymous)> at (8,130) content-size 784x66 children: inline
 | |
|         frag 0 from TextNode start: 1, length: 42, rect: [8,174 441.28125x22] baseline: 17
 | |
|             "Variable set by CSS rule matching element:"
 | |
|         TextNode <#text>
 | |
|         BreakNode <br>
 | |
|         BreakNode <br>
 | |
|         TextNode <#text>
 | |
|         BreakNode <br>
 | |
|         TextNode <#text>
 | |
|       BlockContainer <div.b> at (8,196) content-size 784x100 children: inline
 | |
|         frag 0 from BlockContainer start: 0, length: 0, rect: [8,196 200x100] baseline: 100
 | |
|         BlockContainer <(anonymous)> at (8,196) content-size 200x100 inline-block [BFC] children: inline
 | |
|           TextNode <#text>
 | |
|       BlockContainer <(anonymous)> at (8,296) content-size 784x66 children: inline
 | |
|         frag 0 from TextNode start: 1, length: 49, rect: [8,340 520.625x22] baseline: 17
 | |
|             "Variable set by CSS rule matching pseudo element:"
 | |
|         TextNode <#text>
 | |
|         BreakNode <br>
 | |
|         BreakNode <br>
 | |
|         TextNode <#text>
 | |
|         BreakNode <br>
 | |
|         TextNode <#text>
 | |
|       BlockContainer <div.c> at (8,362) content-size 784x100 children: inline
 | |
|         frag 0 from BlockContainer start: 0, length: 0, rect: [8,362 200x100] baseline: 100
 | |
|         BlockContainer <(anonymous)> at (8,362) content-size 200x100 inline-block [BFC] children: inline
 | |
|           TextNode <#text>
 | |
|       BlockContainer <(anonymous)> at (8,462) content-size 784x0 children: inline
 | |
|         TextNode <#text>
 | |
| 
 | |
| ViewportPaintable (Viewport<#document>) [0,0 800x600]
 | |
|   PaintableWithLines (BlockContainer<HTML>) [0,0 800x470]
 | |
|     PaintableWithLines (BlockContainer<BODY>) [8,8 784x454]
 | |
|       PaintableWithLines (BlockContainer(anonymous)) [8,8 784x22]
 | |
|         TextPaintable (TextNode<#text>)
 | |
|       PaintableWithLines (BlockContainer<DIV>.a) [8,30 784x100]
 | |
|         PaintableWithLines (BlockContainer(anonymous)) [8,30 200x100]
 | |
|       PaintableWithLines (BlockContainer(anonymous)) [8,130 784x66]
 | |
|         TextPaintable (TextNode<#text>)
 | |
|       PaintableWithLines (BlockContainer<DIV>.b) [8,196 784x100]
 | |
|         PaintableWithLines (BlockContainer(anonymous)) [8,196 200x100]
 | |
|       PaintableWithLines (BlockContainer(anonymous)) [8,296 784x66]
 | |
|         TextPaintable (TextNode<#text>)
 | |
|       PaintableWithLines (BlockContainer<DIV>.c) [8,362 784x100]
 | |
|         PaintableWithLines (BlockContainer(anonymous)) [8,362 200x100]
 | |
|       PaintableWithLines (BlockContainer(anonymous)) [8,462 784x0]
 |