mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:27: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:
parent
785fa60cca
commit
de32b77ceb
401 changed files with 2122 additions and 3614 deletions
|
@ -1,8 +1,7 @@
|
|||
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 784x200 children: inline
|
||||
line 0 width: 76.6875, height: 200, bottom: 200, baseline: 70.296875
|
||||
frag 0 from BlockContainer start: 0, length: 0, rect: [22,19 48.6875x178]
|
||||
frag 0 from BlockContainer start: 0, length: 0, rect: [22,19 48.6875x178] baseline: 70.296875
|
||||
TextNode <#text>
|
||||
BlockContainer <button.button.border-black> at (22,19) content-size 48.6875x178 inline-block [BFC] children: not-inline
|
||||
BlockContainer <(anonymous)> at (22,19) content-size 48.6875x178 flex-container(column) [FFC] children: not-inline
|
||||
|
@ -10,15 +9,13 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
BlockContainer <(anonymous)> at (22,29.5) content-size 48.6875x0 children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <div.border-black> at (32,39.5) content-size 28.6875x17 children: inline
|
||||
line 0 width: 28.6875, height: 17, bottom: 17, baseline: 13.296875
|
||||
frag 0 from TextNode start: 1, length: 3, rect: [32,39.5 28.6875x17]
|
||||
frag 0 from TextNode start: 1, length: 3, rect: [32,39.5 28.6875x17] baseline: 13.296875
|
||||
"one"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (22,66.5) content-size 48.6875x0 children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <div.border-black> at (32,76.5) content-size 28.6875x100 children: inline
|
||||
line 0 width: 28.4375, height: 17, bottom: 17, baseline: 13.296875
|
||||
frag 0 from TextNode start: 1, length: 3, rect: [32,76.5 28.4375x17]
|
||||
frag 0 from TextNode start: 1, length: 3, rect: [32,76.5 28.4375x17] baseline: 13.296875
|
||||
"two"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (22,186.5) content-size 48.6875x0 children: inline
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue