Files
ladybird/Tests/LibWeb/Layout/expected/content-image-simple.txt
Aliaksandr Kalenik 397fe9c58e LibWeb: Dump all paintables attached to a layout node in dump_tree
Instead of dumping only the single paintable passed into the function,
iterate over all paintables attached to its layout node. This makes
detached/disconnected paintables visible in the dump output, which is
useful for debugging incremental layout issues.

Rebaseline content-image-simple layout test: the anonymous InlineNode
for ::before content spanning multiple lines legitimately has a
separate PaintableWithLines per line, which now all appear in the dump.
2026-02-15 17:47:30 +01:00

47 lines
2.8 KiB
Plaintext

Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 1216 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 1200 0+0+8] children: not-inline
BlockContainer <div> at [8,8] [0+0+0 784 0+0+0] [0+0+0 1200 0+0+0] children: inline
frag 0 from ImageBox start: 0, length: 0, rect: [8,808 400x400] baseline: 400
InlineNode <(anonymous)> at [8,394] [0+0+0 454.796875 0+0+0] [0+0+0 400 0+0+0]
frag 0 from TextNode start: 0, length: 3, rect: [8,394 27.15625x18] baseline: 13.796875
"foo"
frag 1 from ImageBox start: 0, length: 0, rect: [35.15625,8 400x400] baseline: 400
frag 2 from TextNode start: 0, length: 3, rect: [435.15625,394 27.640625x18] baseline: 13.796875
"bar"
frag 0 from ImageBox start: 0, length: 0, rect: [8,408 400x400] baseline: 400
frag 1 from TextNode start: 0, length: 3, rect: [408,794 27.203125x18] baseline: 13.796875
"baz"
TextNode <#text> (not painted)
ImageBox <(anonymous)> at [35.15625,8] [0+0+0 400 0+0+0] [0+0+0 400 0+0+0] children: not-inline
TextNode <#text> (not painted)
ImageBox <(anonymous)> at [8,408] [0+0+0 400 0+0+0] [0+0+0 400 0+0+0] children: not-inline
TextNode <#text> (not painted)
ImageBox <img> at [8,808] [0+0+0 400 0+0+0] [0+0+0 400 0+0+0] children: not-inline
TextNode <#text> (not painted)
ViewportPaintable (Viewport<#document>) [0,0 800x600] overflow: [0,0 800x1216]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x1216]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x1200]
PaintableWithLines (BlockContainer<DIV>) [8,8 784x1200]
PaintableWithLines (InlineNode(anonymous)) [8,394 454.796875x400]
TextPaintable (TextNode<#text>)
ImagePaintable (ImageBox(anonymous)) [35.15625,8 400x400]
TextPaintable (TextNode<#text>)
ImagePaintable (ImageBox(anonymous)) [8,408 400x400]
TextPaintable (TextNode<#text>)
PaintableWithLines (InlineNode(anonymous)) [8,408 427.203125x400]
PaintableWithLines (InlineNode(anonymous)) [8,394 454.796875x400]
TextPaintable (TextNode<#text>)
ImagePaintable (ImageBox(anonymous)) [35.15625,8 400x400]
TextPaintable (TextNode<#text>)
ImagePaintable (ImageBox(anonymous)) [8,408 400x400]
TextPaintable (TextNode<#text>)
PaintableWithLines (InlineNode(anonymous)) [8,408 427.203125x400]
ImagePaintable (ImageBox<IMG>) [8,808 400x400]
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
SC for BlockContainer<HTML> [0,0 800x1216] [children: 0] (z-index: auto)