mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:47:36 +00:00
AK+LibWeb: Round to int in clamp_to_int instead of truncating
This caused inaccuracies in float->CssPixel conversions
This commit is contained in:
parent
7b7ba38655
commit
af161a8b83
58 changed files with 693 additions and 692 deletions
|
@ -1,18 +1,18 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x215.984375 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x199.984375 children: inline
|
||||
line 0 width: 424, height: 199.984375, bottom: 199.984375, baseline: 159.953125
|
||||
BlockContainer <html> at (0,0) content-size 800x216 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x200 children: inline
|
||||
line 0 width: 424, height: 200, bottom: 200, baseline: 159.96875
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [8,8 79.296875x200]
|
||||
"1"
|
||||
frag 1 from TextNode start: 0, length: 1, rect: [87.296875,154.421875 8x17.46875]
|
||||
frag 1 from TextNode start: 0, length: 1, rect: [87.296875,154.4375 8x17.46875]
|
||||
" "
|
||||
frag 2 from TextNode start: 0, length: 1, rect: [95.296875,8 110.15625x200]
|
||||
"2"
|
||||
frag 3 from TextNode start: 0, length: 1, rect: [205.453125,154.421875 8x17.46875]
|
||||
frag 3 from TextNode start: 0, length: 1, rect: [205.453125,154.4375 8x17.46875]
|
||||
" "
|
||||
frag 4 from TextNode start: 0, length: 1, rect: [213.453125,8 113.671875x200]
|
||||
"3"
|
||||
frag 5 from TextNode start: 0, length: 1, rect: [327.125,154.421875 8x17.46875]
|
||||
frag 5 from TextNode start: 0, length: 1, rect: [327.125,154.4375 8x17.46875]
|
||||
" "
|
||||
frag 6 from TextNode start: 0, length: 1, rect: [335.125,8 96.875x200]
|
||||
"4"
|
||||
|
@ -30,8 +30,8 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
TextNode <#text>
|
||||
|
||||
PaintableWithLines (Viewport<#document>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x215.984375]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x199.984375] overflow: [8,8 784x200]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x216]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x200]
|
||||
InlinePaintable (InlineNode<SPAN>.one)
|
||||
TextPaintable (TextNode<#text>)
|
||||
TextPaintable (TextNode<#text>)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue