mirror of
https://github.com/RGBCube/serenity
synced 2025-07-30 03:57:45 +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 784x178.46875 children: inline
|
||||
line 0 width: 210.828125, height: 178.46875, bottom: 178.46875, baseline: 175
|
||||
frag 0 from TextNode start: 0, length: 6, rect: [8,169 43.125x17.46875]
|
||||
BlockContainer <body> at (8,8) content-size 784x178.9375 children: inline
|
||||
line 0 width: 210.828125, height: 178.9375, bottom: 178.9375, baseline: 175
|
||||
frag 0 from TextNode start: 0, length: 6, rect: [8,169.46875 43.125x17.46875]
|
||||
"Well, "
|
||||
frag 1 from BlockContainer start: 0, length: 0, rect: [51,58 100x100]
|
||||
frag 2 from TextNode start: 0, length: 9, rect: [151,169 67.703125x17.46875]
|
||||
frag 1 from BlockContainer start: 0, length: 0, rect: [51.125,58 100x100]
|
||||
frag 2 from TextNode start: 0, length: 9, rect: [151.125,169.46875 67.703125x17.46875]
|
||||
" friends."
|
||||
TextNode <#text>
|
||||
BlockContainer <div#inline-box> at (51,58) content-size 100x100 inline-block [BFC] children: not-inline
|
||||
BlockContainer <div#inline-box> at (51.125,58) content-size 100x100 inline-block [BFC] children: not-inline
|
||||
TextNode <#text>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue