mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:27:45 +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,21 +1,21 @@
|
|||
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 784x24 children: not-inline
|
||||
Box <div.grid-container> at (8,8) content-size 784x24 [GFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x24.015625 children: not-inline
|
||||
Box <div.grid-container> at (8,8) content-size 784x24.015625 [GFC] children: not-inline
|
||||
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <div.wrapper> at (8,8) content-size 64.015625x24 [BFC] children: inline
|
||||
line 0 width: 64.015625, height: 24, bottom: 24, baseline: 24
|
||||
frag 0 from ImageBox start: 0, length: 0, rect: [8,8 64.015625x24]
|
||||
BlockContainer <div.wrapper> at (8,8) content-size 64.03125x24.015625 [BFC] children: inline
|
||||
line 0 width: 64.03125, height: 24.015625, bottom: 24.015625, baseline: 24.015625
|
||||
frag 0 from ImageBox start: 0, length: 0, rect: [8,8 64.03125x24.015625]
|
||||
TextNode <#text>
|
||||
ImageBox <img> at (8,8) content-size 64.015625x24 children: not-inline
|
||||
ImageBox <img> at (8,8) content-size 64.03125x24.015625 children: not-inline
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
||||
TextNode <#text>
|
||||
|
||||
PaintableWithLines (Viewport<#document>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x24]
|
||||
PaintableBox (Box<DIV>.grid-container) [8,8 784x24]
|
||||
PaintableWithLines (BlockContainer<DIV>.wrapper) [8,8 64.015625x24]
|
||||
ImagePaintable (ImageBox<IMG>) [8,8 64.015625x24]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x24.015625]
|
||||
PaintableBox (Box<DIV>.grid-container) [8,8 784x24.015625]
|
||||
PaintableWithLines (BlockContainer<DIV>.wrapper) [8,8 64.03125x24.015625]
|
||||
ImagePaintable (ImageBox<IMG>) [8,8 64.03125x24.015625]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue