mirror of
https://github.com/RGBCube/serenity
synced 2025-07-02 23:12:08 +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.
33 lines
2 KiB
Text
33 lines
2 KiB
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x616 [BFC] children: not-inline
|
|
BlockContainer <(anonymous)> at (0,0) content-size 800x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <body> at (8,8) content-size 784x600 children: not-inline
|
|
BlockContainer <(anonymous)> at (8,8) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
TableWrapper <(anonymous)> at (8,8) content-size 1200x600 [BFC] children: not-inline
|
|
Box <div.aligncenter.block-image> at (8,8) content-size 1200x600 table-box [TFC] children: inline
|
|
Box <(anonymous)> at (8,8) content-size 1200x600 table-row children: inline
|
|
BlockContainer <(anonymous)> at (8,8) content-size 1200x600 table-cell [BFC] children: inline
|
|
TextNode <#text>
|
|
InlineNode <a>
|
|
frag 0 from ImageBox start: 0, length: 0, rect: [8,8 1200x600] baseline: 600
|
|
TextNode <#text>
|
|
ImageBox <img> at (8,8) content-size 1200x600 children: not-inline
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (8,608) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600] overflow: [0,0 1208x616]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x616] overflow: [0,0 1208x616]
|
|
PaintableWithLines (BlockContainer(anonymous)) [0,0 800x0]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x600] overflow: [8,8 1200x600]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,8 784x0]
|
|
PaintableWithLines (TableWrapper(anonymous)) [8,8 1200x600]
|
|
PaintableBox (Box<DIV>.aligncenter.block-image) [8,8 1200x600]
|
|
PaintableBox (Box(anonymous)) [8,8 1200x600]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,8 1200x600]
|
|
InlinePaintable (InlineNode<A>)
|
|
ImagePaintable (ImageBox<IMG>) [8,8 1200x600]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,608 784x0]
|