1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:27:35 +00:00

LibWeb: Remove rounding division for CSSPixels

Reverts 98926b487c
that regressed: block-and-inline/small-percentage-margin.html
(thrashing layout while window resizing)

Fixes https://github.com/SerenityOS/serenity/issues/22610
This commit is contained in:
Aliaksandr Kalenik 2024-01-06 06:08:23 +01:00 committed by Andreas Kling
parent 7db8b206a8
commit e7eaf3b566
32 changed files with 257 additions and 245 deletions

View file

@ -1,7 +1,7 @@
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 784x78.609375 children: inline
line 0 width: 78.9375, height: 78.609375, bottom: 78.609375, baseline: 60.90625
line 0 width: 78.9375, height: 78.609375, bottom: 78.609375, baseline: 60.890625
frag 0 from TextNode start: 0, length: 1, rect: [8,25 39.09375x55.8125]
"H"
frag 1 from TextNode start: 0, length: 1, rect: [47,38 19.78125x39.625]