mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 23:07:35 +00:00
LibWeb: Use fixed-point saturated arithmetics for CSSPixels
Using fixed-point saturated arithmetics for CSSPixels allows to avoid accumulating floating-point errors. This implementation is not complete yet: currently saturated arithmetics implemented only for addition. But it is enough to not regress any of layout tests we have :) See https://github.com/SerenityOS/serenity/issues/18566
This commit is contained in:
parent
5cdd03fc53
commit
bec07d4af7
136 changed files with 1938 additions and 1844 deletions
|
@ -1,12 +1,12 @@
|
|||
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 784x216.46875 children: inline
|
||||
line 0 width: 174.828125, height: 216.46875, bottom: 216.46875, baseline: 213
|
||||
frag 0 from TextNode start: 0, length: 6, rect: [8,207 43.125x17.46875]
|
||||
BlockContainer <body> at (8,8) content-size 784x216.9375 children: inline
|
||||
line 0 width: 174.828125, height: 216.9375, bottom: 216.9375, baseline: 213
|
||||
frag 0 from TextNode start: 0, length: 6, rect: [8,207.46875 43.125x17.46875]
|
||||
"Well, "
|
||||
frag 1 from ImageBox start: 0, length: 0, rect: [51,33 64x138]
|
||||
frag 2 from TextNode start: 0, length: 9, rect: [115,207 67.703125x17.46875]
|
||||
frag 1 from ImageBox start: 0, length: 0, rect: [51.125,33 64x138]
|
||||
frag 2 from TextNode start: 0, length: 9, rect: [115.125,207.46875 67.703125x17.46875]
|
||||
" friends."
|
||||
TextNode <#text>
|
||||
ImageBox <img#image> at (51,33) content-size 64x138 children: not-inline
|
||||
ImageBox <img#image> at (51.125,33) content-size 64x138 children: not-inline
|
||||
TextNode <#text>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue