1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:37:35 +00:00

LibWeb: Use separate structure to represent fragments in paintable tree

This is a part of refactoring towards making the paintable tree
independent of the layout tree. Now, instead of transferring text
fragments from the layout tree to the paintable tree during the layout
commit phase, we allocate separate PaintableFragments that contain only
the information necessary for painting. Doing this also allows us to
get rid LineBoxes, as they are used only during layout.
This commit is contained in:
Aliaksandr Kalenik 2024-01-12 21:25:05 +01:00 committed by Andreas Kling
parent 785fa60cca
commit de32b77ceb
401 changed files with 2122 additions and 3614 deletions

View file

@ -4,8 +4,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
Box <div.grid> at (8,8) content-size 784x27 [GFC] children: not-inline
BlockContainer <div> at (8,8) content-size 784x27 [BFC] children: not-inline
BlockContainer <div.left> at (8,8) content-size 6.34375x17 floating [BFC] children: inline
line 0 width: 6.34375, height: 17, bottom: 17, baseline: 13.296875
frag 0 from TextNode start: 0, length: 1, rect: [8,8 6.34375x17]
frag 0 from TextNode start: 0, length: 1, rect: [8,8 6.34375x17] baseline: 13.296875
"1"
TextNode <#text>
TableWrapper <(anonymous)> at (14.34375,8) content-size 156.796875x27 floating [BFC] children: not-inline
@ -13,18 +12,15 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
Box <tbody> at (15.34375,9) content-size 148.796875x21 table-row-group children: not-inline
Box <tr> at (17.34375,11) content-size 148.796875x21 table-row children: not-inline
BlockContainer <td> at (19.34375,13) content-size 69.59375x17 table-cell [BFC] children: inline
line 0 width: 8.8125, height: 17, bottom: 17, baseline: 13.296875
frag 0 from TextNode start: 0, length: 1, rect: [19.34375,13 8.8125x17]
frag 0 from TextNode start: 0, length: 1, rect: [19.34375,13 8.8125x17] baseline: 13.296875
"2"
TextNode <#text>
BlockContainer <td> at (94.9375,13) content-size 71.203125x17 table-cell [BFC] children: inline
line 0 width: 9.09375, height: 17, bottom: 17, baseline: 13.296875
frag 0 from TextNode start: 0, length: 1, rect: [94.9375,13 9.09375x17]
frag 0 from TextNode start: 0, length: 1, rect: [94.9375,13 9.09375x17] baseline: 13.296875
"3"
TextNode <#text>
BlockContainer <div.right> at (171.140625,8) content-size 7.75x17 floating [BFC] children: inline
line 0 width: 7.75, height: 17, bottom: 17, baseline: 13.296875
frag 0 from TextNode start: 0, length: 1, rect: [171.140625,8 7.75x17]
frag 0 from TextNode start: 0, length: 1, rect: [171.140625,8 7.75x17] baseline: 13.296875
"4"
TextNode <#text>
BlockContainer <(anonymous)> at (8,35) content-size 784x0 children: inline