mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 05:42:43 +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.
		
			
				
	
	
		
			112 lines
		
	
	
	
		
			6.8 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			112 lines
		
	
	
	
		
			6.8 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| Viewport <#document> at (0,0) content-size 800x600 children: not-inline
 | |
|   BlockContainer <html> at (0,0) content-size 800x102 [BFC] children: not-inline
 | |
|     BlockContainer <(anonymous)> at (0,0) content-size 800x0 children: inline
 | |
|       TextNode <#text>
 | |
|     BlockContainer <body> at (8,8) content-size 784x86 children: not-inline
 | |
|       BlockContainer <(anonymous)> at (8,8) content-size 784x0 children: inline
 | |
|         TextNode <#text>
 | |
|       TableWrapper <(anonymous)> at (8,8) content-size 229.359375x86 [BFC] children: not-inline
 | |
|         Box <table> at (9,9) content-size 227.359375x84 table-box [TFC] children: not-inline
 | |
|           BlockContainer <(anonymous)> (not painted) children: inline
 | |
|             TextNode <#text>
 | |
|           Box <tbody> at (9,9) content-size 227.359375x84 table-row-group children: not-inline
 | |
|             Box <tr> at (9,9) content-size 227.359375x21 table-row children: not-inline
 | |
|               BlockContainer <(anonymous)> (not painted) children: inline
 | |
|                 TextNode <#text>
 | |
|               BlockContainer <th> at (11,11) content-size 70.046875x17 table-cell [BFC] children: inline
 | |
|                 frag 0 from TextNode start: 0, length: 8, rect: [11,11 70.046875x17] baseline: 13.296875
 | |
|                     "Header 1"
 | |
|                 TextNode <#text>
 | |
|               BlockContainer <(anonymous)> (not painted) children: inline
 | |
|                 TextNode <#text>
 | |
|               BlockContainer <th> at (85.046875,11) content-size 72.515625x17 table-cell [BFC] children: inline
 | |
|                 frag 0 from TextNode start: 0, length: 8, rect: [85.046875,11 72.515625x17] baseline: 13.296875
 | |
|                     "Header 2"
 | |
|                 TextNode <#text>
 | |
|               BlockContainer <(anonymous)> (not painted) children: inline
 | |
|                 TextNode <#text>
 | |
|               BlockContainer <th> at (161.5625,11) content-size 72.796875x17 table-cell [BFC] children: inline
 | |
|                 frag 0 from TextNode start: 0, length: 8, rect: [161.5625,11 72.796875x17] baseline: 13.296875
 | |
|                     "Header 3"
 | |
|                 TextNode <#text>
 | |
|               BlockContainer <(anonymous)> (not painted) children: inline
 | |
|                 TextNode <#text>
 | |
|             BlockContainer <(anonymous)> (not painted) children: inline
 | |
|               TextNode <#text>
 | |
|             Box <tr> at (9,30) content-size 227.359375x21 table-row children: not-inline
 | |
|               BlockContainer <(anonymous)> (not painted) children: inline
 | |
|                 TextNode <#text>
 | |
|               BlockContainer <td> at (11,32) content-size 223.359375x17 table-cell [BFC] children: inline
 | |
|                 frag 0 from TextNode start: 0, length: 6, rect: [102,32 41.84375x17] baseline: 13.296875
 | |
|                     "Cell 1"
 | |
|                 TextNode <#text>
 | |
|               BlockContainer <(anonymous)> (not painted) children: inline
 | |
|                 TextNode <#text>
 | |
|             BlockContainer <(anonymous)> (not painted) children: inline
 | |
|               TextNode <#text>
 | |
|             Box <tr> at (9,51) content-size 227.359375x21 table-row children: not-inline
 | |
|               BlockContainer <(anonymous)> (not painted) children: inline
 | |
|                 TextNode <#text>
 | |
|               BlockContainer <td> at (11,53) content-size 223.359375x17 table-cell [BFC] children: inline
 | |
|                 frag 0 from TextNode start: 0, length: 6, rect: [101,53 44.3125x17] baseline: 13.296875
 | |
|                     "Cell 2"
 | |
|                 TextNode <#text>
 | |
|               BlockContainer <(anonymous)> (not painted) children: inline
 | |
|                 TextNode <#text>
 | |
|             BlockContainer <(anonymous)> (not painted) children: inline
 | |
|               TextNode <#text>
 | |
|             Box <tr> at (9,72) content-size 227.359375x21 table-row children: not-inline
 | |
|               BlockContainer <(anonymous)> (not painted) children: inline
 | |
|                 TextNode <#text>
 | |
|               BlockContainer <td> at (11,74) content-size 70.046875x17 table-cell [BFC] children: inline
 | |
|                 frag 0 from TextNode start: 0, length: 6, rect: [24,74 44.59375x17] baseline: 13.296875
 | |
|                     "Cell 3"
 | |
|                 TextNode <#text>
 | |
|               BlockContainer <(anonymous)> (not painted) children: inline
 | |
|                 TextNode <#text>
 | |
|               BlockContainer <td> at (85.046875,74) content-size 72.515625x17 table-cell [BFC] children: inline
 | |
|                 frag 0 from TextNode start: 0, length: 6, rect: [100.046875,74 43.25x17] baseline: 13.296875
 | |
|                     "Cell 4"
 | |
|                 TextNode <#text>
 | |
|               BlockContainer <(anonymous)> (not painted) children: inline
 | |
|                 TextNode <#text>
 | |
|               BlockContainer <td> at (161.5625,74) content-size 72.796875x17 table-cell [BFC] children: inline
 | |
|                 frag 0 from TextNode start: 0, length: 6, rect: [175.5625,74 43.953125x17] baseline: 13.296875
 | |
|                     "Cell 5"
 | |
|                 TextNode <#text>
 | |
|               BlockContainer <(anonymous)> (not painted) children: inline
 | |
|                 TextNode <#text>
 | |
|             BlockContainer <(anonymous)> (not painted) children: inline
 | |
|               TextNode <#text>
 | |
|       BlockContainer <(anonymous)> at (8,94) content-size 784x0 children: inline
 | |
|         TextNode <#text>
 | |
| 
 | |
| ViewportPaintable (Viewport<#document>) [0,0 800x600]
 | |
|   PaintableWithLines (BlockContainer<HTML>) [0,0 800x102]
 | |
|     PaintableWithLines (BlockContainer(anonymous)) [0,0 800x0]
 | |
|     PaintableWithLines (BlockContainer<BODY>) [8,8 784x86]
 | |
|       PaintableWithLines (BlockContainer(anonymous)) [8,8 784x0]
 | |
|       PaintableWithLines (TableWrapper(anonymous)) [8,8 229.359375x86]
 | |
|         PaintableBox (Box<TABLE>) [8,8 229.359375x86]
 | |
|           PaintableBox (Box<TBODY>) [9,9 227.359375x84]
 | |
|             PaintableBox (Box<TR>) [9,9 227.359375x21]
 | |
|               PaintableWithLines (BlockContainer<TH>) [9,9 74.046875x21]
 | |
|                 TextPaintable (TextNode<#text>)
 | |
|               PaintableWithLines (BlockContainer<TH>) [83.046875,9 76.515625x21]
 | |
|                 TextPaintable (TextNode<#text>)
 | |
|               PaintableWithLines (BlockContainer<TH>) [159.5625,9 76.796875x21]
 | |
|                 TextPaintable (TextNode<#text>)
 | |
|             PaintableBox (Box<TR>) [9,30 227.359375x21]
 | |
|               PaintableWithLines (BlockContainer<TD>) [9,30 227.359375x21]
 | |
|                 TextPaintable (TextNode<#text>)
 | |
|             PaintableBox (Box<TR>) [9,51 227.359375x21]
 | |
|               PaintableWithLines (BlockContainer<TD>) [9,51 227.359375x21]
 | |
|                 TextPaintable (TextNode<#text>)
 | |
|             PaintableBox (Box<TR>) [9,72 227.359375x21]
 | |
|               PaintableWithLines (BlockContainer<TD>) [9,72 74.046875x21]
 | |
|                 TextPaintable (TextNode<#text>)
 | |
|               PaintableWithLines (BlockContainer<TD>) [83.046875,72 76.515625x21]
 | |
|                 TextPaintable (TextNode<#text>)
 | |
|               PaintableWithLines (BlockContainer<TD>) [159.5625,72 76.796875x21]
 | |
|                 TextPaintable (TextNode<#text>)
 | |
|       PaintableWithLines (BlockContainer(anonymous)) [8,94 784x0]
 |