mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:27:35 +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.
11 lines
689 B
Text
11 lines
689 B
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x100 [BFC] children: not-inline
|
|
Box <body> at (0,0) content-size 800x100 flex-container(column) [FFC] children: not-inline
|
|
SVGSVGBox <svg> at (0,0) content-size 200x100 flex-item [SVG] children: not-inline
|
|
SVGGeometryBox <rect> at (0,0) content-size 200x100 children: not-inline
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x100]
|
|
PaintableBox (Box<BODY>) [0,0 800x100]
|
|
SVGSVGPaintable (SVGSVGBox<svg>) [0,0 200x100]
|
|
SVGPathPaintable (SVGGeometryBox<rect>) [0,0 200x100]
|