mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-05 16:14:38 +00:00
When traversing the layout tree to find an appropriate box child to derive the baseline from. Only the child's margin and offset was being applied. Now we sum each offset on the recursive call.
47 lines
2.8 KiB
Plaintext
47 lines
2.8 KiB
Plaintext
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x66 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,8) content-size 784x50 children: inline
|
|
frag 0 from BlockContainer start: 0, length: 0, rect: [11,11 240x44] baseline: 20
|
|
frag 1 from TextNode start: 0, length: 1, rect: [254,11 10x22] baseline: 17
|
|
" "
|
|
frag 2 from BlockContainer start: 0, length: 0, rect: [267,11 240x44] baseline: 20
|
|
frag 3 from BlockContainer start: 0, length: 0, rect: [513,11 240x44] baseline: 20
|
|
TextNode <#text>
|
|
BlockContainer <textarea> at (11,11) content-size 240x44 inline-block [BFC] children: not-inline
|
|
BlockContainer <div> at (11,11) content-size 240x22 children: not-inline
|
|
BlockContainer <div> at (11,11) content-size 240x22 children: inline
|
|
frag 0 from TextNode start: 0, length: 17, rect: [11,11 190.265625x22] baseline: 17
|
|
"Bonjour mon amis!"
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
BlockContainer <textarea> at (267,11) content-size 240x44 inline-block [BFC] children: not-inline
|
|
BlockContainer <div> at (267,11) content-size 240x22 children: not-inline
|
|
BlockContainer <div> at (267,11) content-size 240x22 children: inline
|
|
frag 0 from TextNode start: 0, length: 19, rect: [267,11 177.6875x22] baseline: 17
|
|
"Well hello friends!"
|
|
TextNode <#text>
|
|
BlockContainer <textarea> at (513,11) content-size 240x44 inline-block [BFC] children: not-inline
|
|
BlockContainer <div> at (513,11) content-size 240x22 children: not-inline
|
|
BlockContainer <div> at (513,11) content-size 240x22 children: inline
|
|
frag 0 from TextNode start: 0, length: 16, rect: [513,11 154.0625x22] baseline: 17
|
|
"Tja hej vänner!"
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x66]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x50]
|
|
PaintableWithLines (BlockContainer<TEXTAREA>) [8,8 246x50]
|
|
PaintableWithLines (BlockContainer<DIV>) [11,11 240x22]
|
|
PaintableWithLines (BlockContainer<DIV>) [11,11 240x22]
|
|
TextPaintable (TextNode<#text>)
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<TEXTAREA>) [264,8 246x50]
|
|
PaintableWithLines (BlockContainer<DIV>) [267,11 240x22]
|
|
PaintableWithLines (BlockContainer<DIV>) [267,11 240x22]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<TEXTAREA>) [510,8 246x50]
|
|
PaintableWithLines (BlockContainer<DIV>) [513,11 240x22]
|
|
PaintableWithLines (BlockContainer<DIV>) [513,11 240x22]
|
|
TextPaintable (TextNode<#text>)
|