mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:18:12 +00:00

This makes use of the new Gfx::Path::text() to handle SVG text elements, with this text is just a regular path, and can be manipulated like any other graphics element. This removes the SVGTextPaintable and makes both <text> and geometry elements use a new (shared) SVGPathPaintable. This is identical to the old SVGGeometryPaintable. This simplifies painting as once something is resolved to a Gfx::Path, the painting logic is the same.
30 lines
1.8 KiB
Text
30 lines
1.8 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 784x261.328125 children: inline
|
|
line 0 width: 784, height: 261.328125, bottom: 261.328125, baseline: 261.328125
|
|
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 784x261.328125]
|
|
SVGSVGBox <svg> at (8,8) content-size 784x261.328125 [SVG] children: inline
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
SVGTextBox <text.small> at (73.34375,88.359375) content-size 48.109375x37.484375 children: inline
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
SVGTextBox <text.heavy> at (138.6875,43.953125) content-size 148.234375x79.71875 children: inline
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
SVGTextBox <text.small> at (187.671875,153.703125) content-size 34.59375x34.703125 children: inline
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
SVGTextBox <text.Rrrrr> at (220.34375,83.15625) content-size 519.34375x115.359375 children: inline
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x261.328125]
|
|
SVGSVGPaintable (SVGSVGBox<svg>) [8,8 784x261.328125]
|
|
SVGPathPaintable (SVGTextBox<text>.small) [73.34375,88.359375 48.109375x37.484375]
|
|
SVGPathPaintable (SVGTextBox<text>.heavy) [138.6875,43.953125 148.234375x79.71875]
|
|
SVGPathPaintable (SVGTextBox<text>.small) [187.671875,153.703125 34.59375x34.703125]
|
|
SVGPathPaintable (SVGTextBox<text>.Rrrrr) [220.34375,83.15625 519.34375x115.359375]
|