mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 04:37:44 +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
|
@ -5,8 +5,8 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
Box <table> at (9,9) content-size 79.4375x83.875 table-box [TFC] children: not-inline
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
Box <tbody> at (9,9) content-size 75.4375x77.859375 table-row-group children: not-inline
|
||||
Box <tr> at (11,11) content-size 75.4375x21.453125 table-row children: not-inline
|
||||
Box <tbody> at (9,9) content-size 75.4375x77.875 table-row-group children: not-inline
|
||||
Box <tr> at (11,11) content-size 75.4375x21.46875 table-row children: not-inline
|
||||
BlockContainer <td> at (13,13) content-size 71.4375x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 7.9375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [13,13 7.9375x17.46875]
|
||||
|
@ -14,13 +14,13 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
Box <tr> at (11,34.453125) content-size 75.4375x56.40625 table-row children: not-inline
|
||||
BlockContainer <td> at (13,45.1875) content-size 71.4375x34.9375 table-cell [BFC] children: inline
|
||||
Box <tr> at (11,34.46875) content-size 75.4375x56.40625 table-row children: not-inline
|
||||
BlockContainer <td> at (13,45.203125) content-size 71.4375x34.9375 table-cell [BFC] children: inline
|
||||
line 0 width: 71.4375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 9, rect: [13,45.1875 71.4375x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 9, rect: [13,45.203125 71.4375x17.46875]
|
||||
"*********"
|
||||
line 1 width: 63.5625, height: 17.46875, bottom: 34.9375, baseline: 13.53125
|
||||
frag 0 from TextNode start: 10, length: 8, rect: [13,62.65625 63.5625x17.46875]
|
||||
frag 0 from TextNode start: 10, length: 8, rect: [13,62.671875 63.5625x17.46875]
|
||||
"***** **"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
|
@ -33,11 +33,11 @@ PaintableWithLines (Viewport<#document>) [0,0 800x600]
|
|||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x85.875]
|
||||
PaintableWithLines (TableWrapper(anonymous)) [8,8 81.4375x85.875]
|
||||
PaintableBox (Box<TABLE>) [8,8 81.4375x85.875]
|
||||
PaintableBox (Box<TBODY>) [9,9 75.4375x77.859375] overflow: [9,9 77.4375x81.859375]
|
||||
PaintableBox (Box<TR>) [11,11 75.4375x21.453125] overflow: [11,11 75.4375x21.46875]
|
||||
PaintableBox (Box<TBODY>) [9,9 75.4375x77.875] overflow: [9,9 77.4375x81.875]
|
||||
PaintableBox (Box<TR>) [11,11 75.4375x21.46875]
|
||||
PaintableWithLines (BlockContainer<TD>) [11,11 75.4375x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableBox (Box<TR>) [11,34.453125 75.4375x56.40625]
|
||||
PaintableWithLines (BlockContainer<TD>) [11,34.453125 75.4375x56.40625]
|
||||
PaintableBox (Box<TR>) [11,34.46875 75.4375x56.40625]
|
||||
PaintableWithLines (BlockContainer<TD>) [11,34.46875 75.4375x56.40625]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer(anonymous)) [8,93.875 784x0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue