mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:57:44 +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,26 +1,22 @@
|
|||
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 784x48 children: inline
|
||||
line 0 width: 61.1875, height: 48, bottom: 48, baseline: 34
|
||||
frag 0 from BlockContainer start: 0, length: 0, rect: [8,8 61.1875x48]
|
||||
frag 0 from BlockContainer start: 0, length: 0, rect: [8,8 61.1875x48] baseline: 34
|
||||
BlockContainer <div.ib> at (8,8) content-size 61.1875x48 inline-block [BFC] children: inline
|
||||
line 0 width: 61.1875, height: 48, bottom: 48, baseline: 34
|
||||
frag 0 from BlockContainer start: 0, length: 0, rect: [9,25 17.828125x22]
|
||||
frag 1 from TextNode start: 0, length: 1, rect: [28,28 8x17]
|
||||
frag 0 from BlockContainer start: 0, length: 0, rect: [9,25 17.828125x22] baseline: 18
|
||||
frag 1 from TextNode start: 0, length: 1, rect: [28,28 8x17] baseline: 13.296875
|
||||
" "
|
||||
frag 2 from BlockContainer start: 0, length: 0, rect: [41,10 23.359375x44]
|
||||
frag 2 from BlockContainer start: 0, length: 0, rect: [41,10 23.359375x44] baseline: 34
|
||||
TextNode <#text>
|
||||
BlockContainer <div.label> at (9,25) content-size 17.828125x22 inline-block [BFC] children: inline
|
||||
line 0 width: 17.828125, height: 22, bottom: 22, baseline: 17
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [9,25 17.828125x22]
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [9,25 17.828125x22] baseline: 17
|
||||
"A"
|
||||
TextNode <#text>
|
||||
TextNode <#text>
|
||||
BlockContainer <button> at (41,10) content-size 23.359375x44 inline-block [BFC] children: not-inline
|
||||
BlockContainer <(anonymous)> at (41,10) content-size 23.359375x44 flex-container(column) [FFC] children: not-inline
|
||||
BlockContainer <(anonymous)> at (41,10) content-size 23.359375x44 flex-item [BFC] children: inline
|
||||
line 0 width: 23.359375, height: 44, bottom: 44, baseline: 34
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [41,10 23.359375x44]
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [41,10 23.359375x44] baseline: 34
|
||||
"B"
|
||||
TextNode <#text>
|
||||
TextNode <#text>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue