forked from chromium/chromium
-
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.
Leave inflow position alone when resuming a parallel flow.
ComputeInflowPosition() would reset the margin strut, and thus we'd lose the MarginStrut::discard_margins flag. This flag is set to truncate margins at unforced breaks, and needs to remain true as long as we haven't added any in-flow content to the next fragmentainer. The bug was that the block-start margin of some child would be re-applied after an unforced break, because this flag was reset prematurely. The crash in crbug.com/1494668 was caused by this correctness issue. It caused inline elements to become non-contiguous unexpectedly. E.g. there's a fragment item for a SPAN in the first and the third columns, but not in the second, due to a large margin, that should have been ignored. Bug: 1494668, 1497404 Change-Id: I71f7223b2de703cc8df79d0ee6c7475d812d86b0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4994164 Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/main@{#1217689}
- Loading branch information
Showing
8 changed files
with
113 additions
and
8 deletions.
There are no files selected for viewing
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
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
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
16 changes: 16 additions & 0 deletions
16
third_party/blink/web_tests/external/wpt/css/css-break/margin-at-break-001.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,16 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> | ||
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1497404"> | ||
<link rel="match" href="../reference/ref-filled-green-100px-square.xht"> | ||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> | ||
<div style="columns:2; gap:0; column-fill:auto; width:100px; height:100px; background:red;"> | ||
<div style="height:70px;"> | ||
<div style="height:150px; background:green;"></div> | ||
</div> | ||
<div> | ||
<div style="margin-top:60px;"> | ||
<div style="height:50px;"></div> | ||
<div style="height:50px; background:green;"></div> | ||
</div> | ||
</div> | ||
</div> |
16 changes: 16 additions & 0 deletions
16
third_party/blink/web_tests/external/wpt/css/css-break/margin-at-break-002.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,16 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> | ||
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1497404"> | ||
<link rel="match" href="../reference/ref-filled-green-100px-square.xht"> | ||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> | ||
<div style="columns:2; gap:0; column-fill:auto; width:100px; height:100px; background:red;"> | ||
<div style="display:flow-root; height:70px;"> | ||
<div style="height:150px; background:green;"></div> | ||
</div> | ||
<div> | ||
<div style="margin-top:60px;"> | ||
<div style="height:50px;"></div> | ||
<div style="height:50px; background:green;"></div> | ||
</div> | ||
</div> | ||
</div> |
16 changes: 16 additions & 0 deletions
16
third_party/blink/web_tests/external/wpt/css/css-break/margin-at-break-003.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,16 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> | ||
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1497404"> | ||
<link rel="match" href="../reference/ref-filled-green-100px-square.xht"> | ||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> | ||
<div style="columns:2; gap:0; column-fill:auto; width:100px; height:100px; background:red;"> | ||
<div style="height:70px;"> | ||
<div style="height:150px; background:green;"></div> | ||
</div> | ||
<span> | ||
<div style="margin-top:60px;"> | ||
<div style="height:50px;"></div> | ||
<div style="height:50px; background:green;"></div> | ||
</div> | ||
</span> | ||
</div> |
18 changes: 18 additions & 0 deletions
18
third_party/blink/web_tests/external/wpt/css/css-break/margin-at-break-004.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,18 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> | ||
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1497404"> | ||
<link rel="match" href="../reference/ref-filled-green-100px-square.xht"> | ||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> | ||
<div style="columns:2; gap:0; column-fill:auto; width:100px; height:100px; background:red;"> | ||
<span> | ||
<div style="height:70px;"> | ||
<div style="height:150px; background:green;"></div> | ||
</div> | ||
<span> | ||
<div style="margin-top:60px;"> | ||
<div style="height:50px;"></div> | ||
<div style="height:50px; background:green;"></div> | ||
</div> | ||
</span> | ||
</span> | ||
</div> |
21 changes: 21 additions & 0 deletions
21
third_party/blink/web_tests/external/wpt/css/css-break/margin-at-break-005.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,21 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> | ||
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1494668"> | ||
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1497404"> | ||
<link rel="match" href="../reference/ref-filled-green-100px-square.xht"> | ||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> | ||
<div style="columns:2; gap:0; column-fill:auto; width:100px; height:100px; background:red;"> | ||
<span> | ||
<div style="height:70px;"> | ||
<div style="height:150px; background:green;"></div> | ||
</div> | ||
<span> | ||
<div style="margin-top:160px;"> | ||
<div style="float:left; width:100%;"> | ||
<div style="height:50px;"></div> | ||
<div style="height:50px; background:green;"></div> | ||
</div> | ||
</div> | ||
</span> | ||
</span> | ||
</div> |