mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:27: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:
parent
7b7ba38655
commit
af161a8b83
58 changed files with 693 additions and 692 deletions
|
@ -1,16 +1,16 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (1,1) content-size 798x76.578125 [BFC] children: not-inline
|
||||
BlockContainer <body> at (10,10) content-size 604x58.578125 children: not-inline
|
||||
BlockContainer <div.outer> at (11,11) content-size 602x56.578125 children: not-inline
|
||||
BlockContainer <div.inner> at (12,12) content-size 600x54.578125 children: inline
|
||||
line 0 width: 426.875, height: 54.578125, bottom: 54.578125, baseline: 42.265625
|
||||
frag 0 from TextNode start: 0, length: 18, rect: [12,12 426.875x54.578125]
|
||||
BlockContainer <html> at (1,1) content-size 798x76.59375 [BFC] children: not-inline
|
||||
BlockContainer <body> at (10,10) content-size 604x58.59375 children: not-inline
|
||||
BlockContainer <div.outer> at (11,11) content-size 602x56.59375 children: not-inline
|
||||
BlockContainer <div.inner> at (12,12) content-size 600x54.59375 children: inline
|
||||
line 0 width: 426.90625, height: 54.59375, bottom: 54.59375, baseline: 42.28125
|
||||
frag 0 from TextNode start: 0, length: 18, rect: [12,12 426.90625x54.59375]
|
||||
"well hello friends"
|
||||
TextNode <#text>
|
||||
|
||||
PaintableWithLines (Viewport<#document>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x78.578125]
|
||||
PaintableWithLines (BlockContainer<BODY>) [9,9 606x60.578125]
|
||||
PaintableWithLines (BlockContainer<DIV>.outer) [10,10 604x58.578125]
|
||||
PaintableWithLines (BlockContainer<DIV>.inner) [11,11 602x56.578125]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x78.59375]
|
||||
PaintableWithLines (BlockContainer<BODY>) [9,9 606x60.59375]
|
||||
PaintableWithLines (BlockContainer<DIV>.outer) [10,10 604x58.59375]
|
||||
PaintableWithLines (BlockContainer<DIV>.inner) [11,11 602x56.59375]
|
||||
TextPaintable (TextNode<#text>)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue