1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:57:35 +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:
Hendiadyoin1 2023-07-29 15:30:57 +02:00 committed by Alexander Kalenik
parent 7b7ba38655
commit af161a8b83
58 changed files with 693 additions and 692 deletions

View file

@ -1,12 +1,12 @@
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 784x109.171875 children: inline
line 0 width: 275.28125, height: 109.171875, bottom: 109.171875, baseline: 84.546875
frag 0 from TextNode start: 0, length: 5, rect: [8,8 275.28125x109.171875]
BlockContainer <body> at (8,8) content-size 784x109.1875 children: inline
line 0 width: 275.296875, height: 109.1875, bottom: 109.1875, baseline: 84.578125
frag 0 from TextNode start: 0, length: 5, rect: [8,8 275.296875x109.1875]
"Crazy"
TextNode <#text>
PaintableWithLines (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x109.171875]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x109.1875]
TextPaintable (TextNode<#text>)