mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 17:15:07 +00:00

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.
38 lines
1.7 KiB
Text
38 lines
1.7 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,8) content-size 784x79 children: inline
|
|
InlineNode <span>
|
|
frag 0 from TextNode start: 0, length: 1, rect: [8,25 39.09375x56] baseline: 43.328125
|
|
"H"
|
|
TextNode <#text>
|
|
InlineNode <span>
|
|
frag 0 from TextNode start: 0, length: 1, rect: [47,38 19.78125x40] baseline: 30.875
|
|
"e"
|
|
TextNode <#text>
|
|
InlineNode <span>
|
|
frag 0 from TextNode start: 0, length: 1, rect: [67,47 6.8125x28] baseline: 21.71875
|
|
"l"
|
|
TextNode <#text>
|
|
InlineNode <span>
|
|
frag 0 from TextNode start: 0, length: 1, rect: [74,53 4.84375x20] baseline: 15.484375
|
|
"l"
|
|
TextNode <#text>
|
|
InlineNode <span>
|
|
frag 0 from TextNode start: 0, length: 1, rect: [79,58 8.40625x14] baseline: 10.890625
|
|
"o"
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x79]
|
|
InlinePaintable (InlineNode<SPAN>)
|
|
TextPaintable (TextNode<#text>)
|
|
InlinePaintable (InlineNode<SPAN>)
|
|
TextPaintable (TextNode<#text>)
|
|
InlinePaintable (InlineNode<SPAN>)
|
|
TextPaintable (TextNode<#text>)
|
|
InlinePaintable (InlineNode<SPAN>)
|
|
TextPaintable (TextNode<#text>)
|
|
InlinePaintable (InlineNode<SPAN>)
|
|
TextPaintable (TextNode<#text>)
|