mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 04:13:11 +00:00
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.
21 lines
1 KiB
Plaintext
21 lines
1 KiB
Plaintext
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,20) content-size 784x22 children: not-inline
|
|
BlockContainer <p> at (8,20) content-size 784x22 children: inline
|
|
TextNode <#text>
|
|
InlineNode <a>
|
|
frag 0 from TextNode start: 0, length: 13, rect: [13,20 141.34375x22] baseline: 17
|
|
"Should be red"
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (8,62) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,20 784x22] overflow: [8,20 784x42]
|
|
PaintableWithLines (BlockContainer<P>) [8,20 784x22]
|
|
InlinePaintable (InlineNode<A>)
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,62 784x0]
|