mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:57: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
|
@ -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,20) content-size 784x21.828125 children: not-inline
|
||||
BlockContainer <p> at (8,20) content-size 784x21.828125 children: inline
|
||||
line 0 width: 183.875, height: 21.828125, bottom: 21.828125, baseline: 16.890625
|
||||
frag 0 from TextNode start: 0, length: 15, rect: [18,20 163.875x21.828125]
|
||||
BlockContainer <body> at (8,20) content-size 784x21.84375 children: not-inline
|
||||
BlockContainer <p> at (8,20) content-size 784x21.84375 children: inline
|
||||
line 0 width: 183.890625, height: 21.84375, bottom: 21.84375, baseline: 16.921875
|
||||
frag 0 from TextNode start: 0, length: 15, rect: [18,20 163.890625x21.84375]
|
||||
"Should be green"
|
||||
TextNode <#text>
|
||||
InlineNode <a>
|
||||
TextNode <#text>
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (8,61.828125) content-size 784x0 children: inline
|
||||
BlockContainer <(anonymous)> at (8,61.84375) content-size 784x0 children: inline
|
||||
TextNode <#text>
|
||||
|
||||
PaintableWithLines (Viewport<#document>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,20 784x21.828125] overflow: [8,20 784x41.828125]
|
||||
PaintableWithLines (BlockContainer<P>) [8,20 784x21.828125]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,20 784x21.84375] overflow: [8,20 784x41.84375]
|
||||
PaintableWithLines (BlockContainer<P>) [8,20 784x21.84375]
|
||||
InlinePaintable (InlineNode<A>)
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer(anonymous)) [8,61.828125 784x0]
|
||||
PaintableWithLines (BlockContainer(anonymous)) [8,61.84375 784x0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue