mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 15:37:46 +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:
parent
785fa60cca
commit
de32b77ceb
401 changed files with 2122 additions and 3614 deletions
|
@ -5,39 +5,33 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
TextNode <#text>
|
||||
Box <div.grid> at (31,31) content-size 738x39 [GFC] children: not-inline
|
||||
BlockContainer <div.start> at (32,32) content-size 367x17 [BFC] children: inline
|
||||
line 0 width: 50.203125, height: 17, bottom: 17, baseline: 13.296875
|
||||
frag 0 from TextNode start: 0, length: 6, rect: [32,32 50.203125x17]
|
||||
frag 0 from TextNode start: 0, length: 6, rect: [32,32 50.203125x17] baseline: 13.296875
|
||||
"Start1"
|
||||
TextNode <#text>
|
||||
BlockContainer <div.item-padding> at (411,42) content-size 347x17 [BFC] children: inline
|
||||
line 0 width: 52.671875, height: 17, bottom: 17, baseline: 13.296875
|
||||
frag 0 from TextNode start: 0, length: 6, rect: [411,42 52.671875x17]
|
||||
frag 0 from TextNode start: 0, length: 6, rect: [411,42 52.671875x17] baseline: 13.296875
|
||||
"Start2"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (10,91) content-size 780x0 children: inline
|
||||
TextNode <#text>
|
||||
Box <div.grid> at (31,112) content-size 738x39 [GFC] children: not-inline
|
||||
BlockContainer <div.center> at (32,123) content-size 367x17 [BFC] children: inline
|
||||
line 0 width: 59.390625, height: 17, bottom: 17, baseline: 13.296875
|
||||
frag 0 from TextNode start: 0, length: 7, rect: [32,123 59.390625x17]
|
||||
frag 0 from TextNode start: 0, length: 7, rect: [32,123 59.390625x17] baseline: 13.296875
|
||||
"Center1"
|
||||
TextNode <#text>
|
||||
BlockContainer <div.item-padding> at (411,123) content-size 347x17 [BFC] children: inline
|
||||
line 0 width: 61.859375, height: 17, bottom: 17, baseline: 13.296875
|
||||
frag 0 from TextNode start: 0, length: 7, rect: [411,123 61.859375x17]
|
||||
frag 0 from TextNode start: 0, length: 7, rect: [411,123 61.859375x17] baseline: 13.296875
|
||||
"Center2"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (10,172) content-size 780x0 children: inline
|
||||
TextNode <#text>
|
||||
Box <div.grid> at (31,193) content-size 738x39 [GFC] children: not-inline
|
||||
BlockContainer <div.end> at (32,214) content-size 367x17 [BFC] children: inline
|
||||
line 0 width: 35.671875, height: 17, bottom: 17, baseline: 13.296875
|
||||
frag 0 from TextNode start: 0, length: 4, rect: [32,214 35.671875x17]
|
||||
frag 0 from TextNode start: 0, length: 4, rect: [32,214 35.671875x17] baseline: 13.296875
|
||||
"End1"
|
||||
TextNode <#text>
|
||||
BlockContainer <div.item-padding> at (411,204) content-size 347x17 [BFC] children: inline
|
||||
line 0 width: 38.140625, height: 17, bottom: 17, baseline: 13.296875
|
||||
frag 0 from TextNode start: 0, length: 4, rect: [411,204 38.140625x17]
|
||||
frag 0 from TextNode start: 0, length: 4, rect: [411,204 38.140625x17] baseline: 13.296875
|
||||
"End2"
|
||||
TextNode <#text>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue