mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 03:28:13 +00:00

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.
25 lines
1.4 KiB
Text
25 lines
1.4 KiB
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x600 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,25) content-size 784x229 children: not-inline
|
|
BlockContainer <div#foo> at (34,26) content-size 100x100 children: inline
|
|
frag 0 from TextNode start: 0, length: 3, rect: [34,26 27.15625x17] baseline: 13.296875
|
|
"foo"
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (8,152) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <div#bar> at (34,153) content-size 100x100 children: inline
|
|
frag 0 from TextNode start: 0, length: 3, rect: [34,153 27.640625x17] baseline: 13.296875
|
|
"bar"
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (8,279) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,25 784x229] overflow: [8,25 784x254]
|
|
PaintableWithLines (BlockContainer<DIV>#foo) [33,25 102x102]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,152 784x0]
|
|
PaintableWithLines (BlockContainer<DIV>#bar) [33,152 102x102]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,279 784x0]
|