forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibWeb: Remove rounding division for CSSPixels
Reverts 98926b4 that regressed (thrashing layout while window resizing): Tests/LibWeb/Layout/input/block-and-inline/small-percentage-margin.html Unfortunately, we currently can't capture such problems with layout tests, so this bug went unnoticed for quite a long time. Fixes SerenityOS#22610
- Loading branch information
1 parent
107bfbe
commit c05a006
Showing
29 changed files
with
228 additions
and
236 deletions.
There are no files selected for viewing
12 changes: 6 additions & 6 deletions
12
Tests/LibWeb/Layout/expected/abspos-box-with-replaced-element.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline | ||
BlockContainer <html> at (1,1) content-size 798x0 [BFC] children: not-inline | ||
BlockContainer <body> at (10,10) content-size 500x100 positioned [BFC] children: not-inline | ||
BlockContainer <div.image-container> at (261,11) content-size 248x28.484375 positioned [BFC] children: inline | ||
line 0 width: 250, height: 28.484375, bottom: 28.484375, baseline: 28.484375 | ||
frag 0 from ImageBox start: 0, length: 0, rect: [262,12 248x26.484375] | ||
ImageBox <img> at (262,12) content-size 248x26.484375 children: not-inline | ||
BlockContainer <div.image-container> at (261,11) content-size 248x28.46875 positioned [BFC] children: inline | ||
line 0 width: 250, height: 28.46875, bottom: 28.46875, baseline: 28.46875 | ||
frag 0 from ImageBox start: 0, length: 0, rect: [262,12 248x26.46875] | ||
ImageBox <img> at (262,12) content-size 248x26.46875 children: not-inline | ||
|
||
ViewportPaintable (Viewport<#document>) [0,0 800x600] | ||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x2] overflow: [9,9 502x102] | ||
PaintableWithLines (BlockContainer<BODY>) [9,9 502x102] | ||
PaintableWithLines (BlockContainer<DIV>.image-container) [260,10 250x30.484375] overflow: [261,11 249x28.484375] | ||
ImagePaintable (ImageBox<IMG>) [261,11 250x28.484375] | ||
PaintableWithLines (BlockContainer<DIV>.image-container) [260,10 250x30.46875] overflow: [261,11 249x28.46875] | ||
ImagePaintable (ImageBox<IMG>) [261,11 250x28.46875] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 15 additions & 15 deletions
30
Tests/LibWeb/Layout/expected/block-and-inline/button-baseline-align.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
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 784x47.6875 children: inline | ||
line 0 width: 61.1875, height: 47.6875, bottom: 47.6875, baseline: 33.84375 | ||
frag 0 from BlockContainer start: 0, length: 0, rect: [8,8 61.1875x47.6875] | ||
BlockContainer <div.ib> at (8,8) content-size 61.1875x47.6875 inline-block [BFC] children: inline | ||
line 0 width: 61.1875, height: 47.6875, bottom: 47.6875, baseline: 33.84375 | ||
BlockContainer <body> at (8,8) content-size 784x47.671875 children: inline | ||
line 0 width: 61.1875, height: 47.671875, bottom: 47.671875, baseline: 33.828125 | ||
frag 0 from BlockContainer start: 0, length: 0, rect: [8,8 61.1875x47.671875] | ||
BlockContainer <div.ib> at (8,8) content-size 61.1875x47.671875 inline-block [BFC] children: inline | ||
line 0 width: 61.1875, height: 47.671875, bottom: 47.671875, baseline: 33.828125 | ||
frag 0 from BlockContainer start: 0, length: 0, rect: [9,24 17.828125x21.84375] | ||
frag 1 from TextNode start: 0, length: 1, rect: [28,28 8x17.46875] | ||
" " | ||
frag 2 from BlockContainer start: 0, length: 0, rect: [41,10 23.359375x43.6875] | ||
frag 2 from BlockContainer start: 0, length: 0, rect: [41,10 23.359375x43.671875] | ||
TextNode <#text> | ||
BlockContainer <div.label> at (9,24) content-size 17.828125x21.84375 inline-block [BFC] children: inline | ||
line 0 width: 17.828125, height: 21.84375, bottom: 21.84375, baseline: 16.921875 | ||
frag 0 from TextNode start: 0, length: 1, rect: [9,24 17.828125x21.84375] | ||
"A" | ||
TextNode <#text> | ||
TextNode <#text> | ||
BlockContainer <button> at (41,10) content-size 23.359375x43.6875 inline-block [BFC] children: not-inline | ||
BlockContainer <(anonymous)> at (41,10) content-size 23.359375x43.6875 flex-container(column) [FFC] children: not-inline | ||
BlockContainer <(anonymous)> at (41,10) content-size 23.359375x43.6875 flex-item [BFC] children: inline | ||
line 0 width: 23.359375, height: 43.6875, bottom: 43.6875, baseline: 33.84375 | ||
BlockContainer <button> at (41,10) content-size 23.359375x43.671875 inline-block [BFC] children: not-inline | ||
BlockContainer <(anonymous)> at (41,10) content-size 23.359375x43.671875 flex-container(column) [FFC] children: not-inline | ||
BlockContainer <(anonymous)> at (41,10) content-size 23.359375x43.671875 flex-item [BFC] children: inline | ||
line 0 width: 23.359375, height: 43.671875, bottom: 43.671875, baseline: 33.828125 | ||
frag 0 from TextNode start: 0, length: 1, rect: [41,10 23.359375x43.671875] | ||
"B" | ||
TextNode <#text> | ||
TextNode <#text> | ||
|
||
ViewportPaintable (Viewport<#document>) [0,0 800x600] | ||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600] | ||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x47.6875] | ||
PaintableWithLines (BlockContainer<DIV>.ib) [8,8 61.1875x47.6875] | ||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x47.671875] | ||
PaintableWithLines (BlockContainer<DIV>.ib) [8,8 61.1875x47.671875] | ||
PaintableWithLines (BlockContainer<DIV>.label) [8,23 19.828125x23.84375] | ||
TextPaintable (TextNode<#text>) | ||
TextPaintable (TextNode<#text>) | ||
PaintableWithLines (BlockContainer<BUTTON>) [36,8 33.359375x47.6875] | ||
PaintableWithLines (BlockContainer(anonymous)) [41,10 23.359375x43.6875] | ||
PaintableWithLines (BlockContainer(anonymous)) [41,10 23.359375x43.6875] | ||
PaintableWithLines (BlockContainer<BUTTON>) [36,8 33.359375x47.671875] | ||
PaintableWithLines (BlockContainer(anonymous)) [41,10 23.359375x43.671875] | ||
PaintableWithLines (BlockContainer(anonymous)) [41,10 23.359375x43.671875] | ||
TextPaintable (TextNode<#text>) |
38 changes: 19 additions & 19 deletions
38
Tests/LibWeb/Layout/expected/block-and-inline/button-with-block-content-baseline-align.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,46 @@ | ||
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 784x47.6875 children: inline | ||
line 0 width: 61.1875, height: 47.6875, bottom: 47.6875, baseline: 33.84375 | ||
frag 0 from BlockContainer start: 0, length: 0, rect: [8,8 61.1875x47.6875] | ||
BlockContainer <div.ib> at (8,8) content-size 61.1875x47.6875 inline-block [BFC] children: inline | ||
line 0 width: 61.1875, height: 47.6875, bottom: 47.6875, baseline: 33.84375 | ||
BlockContainer <body> at (8,8) content-size 784x47.671875 children: inline | ||
line 0 width: 61.1875, height: 47.671875, bottom: 47.671875, baseline: 33.828125 | ||
frag 0 from BlockContainer start: 0, length: 0, rect: [8,8 61.1875x47.671875] | ||
BlockContainer <div.ib> at (8,8) content-size 61.1875x47.671875 inline-block [BFC] children: inline | ||
line 0 width: 61.1875, height: 47.671875, bottom: 47.671875, baseline: 33.828125 | ||
frag 0 from BlockContainer start: 0, length: 0, rect: [9,24 17.828125x21.84375] | ||
frag 1 from TextNode start: 0, length: 1, rect: [28,28 8x17.46875] | ||
" " | ||
frag 2 from BlockContainer start: 0, length: 0, rect: [41,10 23.359375x43.6875] | ||
frag 2 from BlockContainer start: 0, length: 0, rect: [41,10 23.359375x43.671875] | ||
TextNode <#text> | ||
BlockContainer <div.label> at (9,24) content-size 17.828125x21.84375 inline-block [BFC] children: inline | ||
line 0 width: 17.828125, height: 21.84375, bottom: 21.84375, baseline: 16.921875 | ||
frag 0 from TextNode start: 0, length: 1, rect: [9,24 17.828125x21.84375] | ||
"A" | ||
TextNode <#text> | ||
TextNode <#text> | ||
BlockContainer <button> at (41,10) content-size 23.359375x43.6875 inline-block [BFC] children: not-inline | ||
BlockContainer <(anonymous)> at (41,10) content-size 23.359375x43.6875 flex-container(column) [FFC] children: not-inline | ||
BlockContainer <(anonymous)> at (41,10) content-size 23.359375x43.6875 flex-item [BFC] children: not-inline | ||
BlockContainer <button> at (41,10) content-size 23.359375x43.671875 inline-block [BFC] children: not-inline | ||
BlockContainer <(anonymous)> at (41,10) content-size 23.359375x43.671875 flex-container(column) [FFC] children: not-inline | ||
BlockContainer <(anonymous)> at (41,10) content-size 23.359375x43.671875 flex-item [BFC] children: not-inline | ||
BlockContainer <(anonymous)> at (41,10) content-size 23.359375x0 children: inline | ||
TextNode <#text> | ||
BlockContainer <div> at (41,10) content-size 23.359375x43.6875 children: inline | ||
line 0 width: 23.359375, height: 43.6875, bottom: 43.6875, baseline: 33.84375 | ||
BlockContainer <div> at (41,10) content-size 23.359375x43.671875 children: inline | ||
line 0 width: 23.359375, height: 43.671875, bottom: 43.671875, baseline: 33.828125 | ||
frag 0 from TextNode start: 0, length: 1, rect: [41,10 23.359375x43.671875] | ||
"B" | ||
TextNode <#text> | ||
BlockContainer <(anonymous)> at (41,53.6875) content-size 23.359375x0 children: inline | ||
BlockContainer <(anonymous)> at (41,53.671875) content-size 23.359375x0 children: inline | ||
TextNode <#text> | ||
TextNode <#text> | ||
|
||
ViewportPaintable (Viewport<#document>) [0,0 800x600] | ||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600] | ||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x47.6875] | ||
PaintableWithLines (BlockContainer<DIV>.ib) [8,8 61.1875x47.6875] | ||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x47.671875] | ||
PaintableWithLines (BlockContainer<DIV>.ib) [8,8 61.1875x47.671875] | ||
PaintableWithLines (BlockContainer<DIV>.label) [8,23 19.828125x23.84375] | ||
TextPaintable (TextNode<#text>) | ||
TextPaintable (TextNode<#text>) | ||
PaintableWithLines (BlockContainer<BUTTON>) [36,8 33.359375x47.6875] | ||
PaintableWithLines (BlockContainer(anonymous)) [41,10 23.359375x43.6875] | ||
PaintableWithLines (BlockContainer(anonymous)) [41,10 23.359375x43.6875] | ||
PaintableWithLines (BlockContainer<BUTTON>) [36,8 33.359375x47.671875] | ||
PaintableWithLines (BlockContainer(anonymous)) [41,10 23.359375x43.671875] | ||
PaintableWithLines (BlockContainer(anonymous)) [41,10 23.359375x43.671875] | ||
PaintableWithLines (BlockContainer(anonymous)) [41,10 23.359375x0] | ||
PaintableWithLines (BlockContainer<DIV>) [41,10 23.359375x43.6875] | ||
PaintableWithLines (BlockContainer<DIV>) [41,10 23.359375x43.671875] | ||
TextPaintable (TextNode<#text>) | ||
PaintableWithLines (BlockContainer(anonymous)) [41,53.6875 23.359375x0] | ||
PaintableWithLines (BlockContainer(anonymous)) [41,53.671875 23.359375x0] |
Oops, something went wrong.