Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Remaining page height should never be 0
https://bugs.webkit.org/show_bug.cgi?id=257087 rdar://problem/109929893 Reviewed by Alan Baradlay. Partial Merge: https://chromium.googlesource.com/chromium/src.git/+/3e04625f97ad0ae12a02e5f4b4d1e40973d01d29 & https://chromium.googlesource.com/chromium/src.git/+/2fa8cb1b82fe741f526a5009f17b03158349e681 This patch covers the case where if 'LayoutUnit' reaches infinity, it just uses 'pageLogicalHeight' as 'remainingHeight'. * Source/WebCore/rendering/RenderFragmentedFlow.cpp: (RenderFragmentedFlow::pageRemainingLogicalHeightForOffset): Add 'else if' case * LayoutTests/fast/multicol/zero-height-inner-multicol-at-boundary-crash.html: Add Test Case * LayoutTests/fast/multicol/zero-height-inner-multicol-at-boundary-crash-expected.txt: Add Test Case Expectation * LayoutTests/fast/multicol/infinitely-tall-content-in-outer-crash.html: Add Test Case * LayoutTests/fast/multicol/infinitely-tall-content-in-outer-crash-expected.txt: Add Test Case Expectation Canonical link: https://commits.webkit.org/264857@main
- Loading branch information
1 parent
1e30f54
commit d0421ad
Showing
5 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
LayoutTests/fast/multicol/infinitely-tall-content-in-outer-crash-expected.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
PASS if no crash or assertion failure. | ||
|
||
|
||
|
13 changes: 13 additions & 0 deletions
13
LayoutTests/fast/multicol/infinitely-tall-content-in-outer-crash.html
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
</script> | ||
<p>PASS if no crash or assertion failure.</p> | ||
<div style="-webkit-columns:3; column-fill:auto; height:600px;"> | ||
<div style="height:12345678987654321px;"></div> | ||
<div style="-webkit-columns:3;"> | ||
<div style="height:10000px;"></div> | ||
<br> | ||
</div> | ||
</div> |
3 changes: 3 additions & 0 deletions
3
LayoutTests/fast/multicol/zero-height-inner-multicol-at-boundary-crash-expected.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
PASS No crash or assertion failure. | ||
|
14 changes: 14 additions & 0 deletions
14
LayoutTests/fast/multicol/zero-height-inner-multicol-at-boundary-crash.html
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<div style="columns:2; column-fill:auto; height:20px;"> | ||
<div style="columns:2;"> | ||
<div style="height:40px;"></div> | ||
<div style="columns:1; height:0; column-fill:auto;"> | ||
<div></div> | ||
</div> | ||
</div> | ||
</div> | ||
<script src="../../resources/testharness.js"></script> | ||
<script src="../../resources/testharnessreport.js"></script> | ||
<script> | ||
test(() => { }, "No crash or assertion failure."); | ||
</script> |
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