mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-16 05:51:55 +00:00
Doing multiple `for_each_in_subtree()` passes was kind of a hack. We can resolve everything in a single pass with a little more control over the layout process. This also fixes a few minor issues like the sizing of nested `<g>` elements. More work is needed here though as this is still fairly ad-hoc. Note: This does regress `css-namespace-tag-name-selector.html`, previously SVG text within `<a>` elements would appear. However, this was only because `for_each_in_subtree()` would blindly look through the InlineNodes from the unimplemented `SVGAElement`s.
21 lines
1.2 KiB
Text
21 lines
1.2 KiB
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x118 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,8) content-size 784x102 children: inline
|
|
frag 0 from SVGSVGBox start: 0, length: 0, rect: [9,9 100x100] baseline: 102
|
|
SVGSVGBox <svg#outer> at (9,9) content-size 100x100 [SVG] children: inline
|
|
TextNode <#text>
|
|
SVGGraphicsBox <use> at (9,9) content-size 100x100 children: inline
|
|
SVGSVGBox <svg#whee> at (9,9) content-size 100x100 [SVG] children: inline
|
|
TextNode <#text>
|
|
SVGGeometryBox <rect> at (9,9) content-size 50x50 children: inline
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x118]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x102]
|
|
SVGSVGPaintable (SVGSVGBox<svg>#outer) [8,8 102x102]
|
|
SVGGraphicsPaintable (SVGGraphicsBox<use>) [9,9 100x100]
|
|
SVGSVGPaintable (SVGSVGBox<svg>#whee) [9,9 100x100]
|
|
SVGPathPaintable (SVGGeometryBox<rect>) [9,9 50x50]
|