mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20: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:
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 798x45.828125 [BFC] children: not-inline
|
||||
BlockContainer <body> at (10,10) content-size 780x27.828125 children: inline
|
||||
line 0 width: 202, height: 27.828125, bottom: 27.828125, baseline: 27.828125
|
||||
frag 0 from BlockContainer start: 0, length: 0, rect: [11,11 200x25.828125]
|
||||
BlockContainer <input> at (11,11) content-size 200x25.828125 inline-block [BFC] children: not-inline
|
||||
Box <div> at (13,12) content-size 196x23.828125 flex-container(row) [FFC] children: not-inline
|
||||
BlockContainer <div> at (14,13) content-size 0x21.828125 flex-item [BFC] children: inline
|
||||
BlockContainer <html> at (1,1) content-size 798x45.84375 [BFC] children: not-inline
|
||||
BlockContainer <body> at (10,10) content-size 780x27.84375 children: inline
|
||||
line 0 width: 202, height: 27.84375, bottom: 27.84375, baseline: 27.84375
|
||||
frag 0 from BlockContainer start: 0, length: 0, rect: [11,11 200x25.84375]
|
||||
BlockContainer <input> at (11,11) content-size 200x25.84375 inline-block [BFC] children: not-inline
|
||||
Box <div> at (13,12) content-size 196x23.84375 flex-container(row) [FFC] children: not-inline
|
||||
BlockContainer <div> at (14,13) content-size 0x21.84375 flex-item [BFC] children: inline
|
||||
TextNode <#text>
|
||||
|
||||
PaintableWithLines (Viewport<#document>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x47.828125]
|
||||
PaintableWithLines (BlockContainer<BODY>) [9,9 782x29.828125]
|
||||
PaintableWithLines (BlockContainer<INPUT>) [10,10 202x27.828125]
|
||||
PaintableBox (Box<DIV>) [11,11 200x25.828125]
|
||||
PaintableWithLines (BlockContainer<DIV>) [13,12 2x23.828125]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x47.84375]
|
||||
PaintableWithLines (BlockContainer<BODY>) [9,9 782x29.84375]
|
||||
PaintableWithLines (BlockContainer<INPUT>) [10,10 202x27.84375]
|
||||
PaintableBox (Box<DIV>) [11,11 200x25.84375]
|
||||
PaintableWithLines (BlockContainer<DIV>) [13,12 2x23.84375]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue