-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TableFragmentation] Paint section/row backgrounds in cells correctly.
This correctly calculates the part-rect when fragmentation is present. We use the OffsetInStitchedFragments to currently get the part size, and offset, and use that to correctly paint the table section/row backgrounds in the cell. There shouldn't be any significant performance delta due to this patch. Bug: 1078927 Change-Id: I05eb09e9221005c4da9404508317c1bf99687cce Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3632829 Reviewed-by: Philip Rogers <pdr@chromium.org> Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/main@{#1001100}
- Loading branch information
Showing
14 changed files
with
372 additions
and
2 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
22 changes: 22 additions & 0 deletions
22
...d_party/blink/web_tests/external/wpt/css/css-break/table/table-row-paint-htb-ltr-ref.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,22 @@ | ||
<!DOCTYPE html> | ||
<style> | ||
.multicol { | ||
inline-size: 400px; | ||
block-size: 100px; | ||
columns: 4; | ||
column-fill: auto; | ||
gap: 0; | ||
} | ||
.pattern { | ||
background: repeating-linear-gradient(orange, orange 30px, dodgerblue 30px, dodgerblue 60px); | ||
} | ||
</style> | ||
<div class="multicol"> | ||
<div style="position: relative; inline-size: 100%; block-size: 400px;"> | ||
<div style="position: absolute; inset-block-start: 0; inline-size: 100%; background: red; block-size: 50px;"></div> | ||
<div class="pattern" style="position: absolute; inset-block-start: 60px; inset-inline-start: 10px; inline-size: calc(100% - 20px); block-size: 110px;"></div> | ||
<div class="pattern" style="position: absolute; inset-block-start: 180px; inset-inline-start: 10px; inline-size: calc(100% - 20px); block-size: 135px;"></div> | ||
<div style="position: absolute; inset-block-start: 60px; inset-inline-start: 45px; inline-size: 10px; block-size: 255px; background: white;"></div> | ||
<div style="position: absolute; inset-block-end: 0; inline-size: 100%; background: red; block-size: 75px;"></div> | ||
</div> | ||
</div> |
30 changes: 30 additions & 0 deletions
30
third_party/blink/web_tests/external/wpt/css/css-break/table/table-row-paint-htb-ltr.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,30 @@ | ||
<!DOCTYPE html> | ||
<link rel="match" href="table-row-paint-htb-ltr-ref.html"> | ||
<link rel="help" href="https://drafts.csswg.org/css-tables-3/#fragmentation"> | ||
<link rel="help" href="https://drafts.csswg.org/css-tables-3/#rendering"> | ||
<style> | ||
.multicol { | ||
inline-size: 400px; | ||
block-size: 100px; | ||
columns: 4; | ||
column-fill: auto; | ||
gap: 0; | ||
} | ||
.pattern { | ||
background: repeating-linear-gradient(orange, orange 30px, dodgerblue 30px, dodgerblue 60px); | ||
} | ||
</style> | ||
<div class="multicol"> | ||
<table style="border-spacing: 10px; inline-size: 100%;"> | ||
<caption style="background: red; block-size: 50px;"></caption> | ||
<tr class="pattern" style="block-size: 110px;"> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<tr class="pattern" style="block-size: 135px;"> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<caption style="caption-side: bottom; background: red; block-size: 75px;"></caption> | ||
</table> | ||
</div> |
26 changes: 26 additions & 0 deletions
26
...d_party/blink/web_tests/external/wpt/css/css-break/table/table-row-paint-vlr-rtl-ref.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,26 @@ | ||
<!DOCTYPE html> | ||
<style> | ||
body { | ||
writing-mode: vertical-lr; | ||
direction: rtl; | ||
} | ||
.multicol { | ||
inline-size: 400px; | ||
block-size: 100px; | ||
columns: 4; | ||
column-fill: auto; | ||
gap: 0; | ||
} | ||
.pattern { | ||
background: repeating-linear-gradient(to right, orange, orange 30px, dodgerblue 30px, dodgerblue 60px); | ||
} | ||
</style> | ||
<div class="multicol"> | ||
<div style="position: relative; inline-size: 100%; block-size: 400px;"> | ||
<div style="position: absolute; inset-block-start: 0; inline-size: 100%; background: red; block-size: 50px;"></div> | ||
<div class="pattern" style="position: absolute; inset-block-start: 60px; inset-inline-start: 10px; inline-size: calc(100% - 20px); block-size: 110px;"></div> | ||
<div class="pattern" style="position: absolute; inset-block-start: 180px; inset-inline-start: 10px; inline-size: calc(100% - 20px); block-size: 135px;"></div> | ||
<div style="position: absolute; inset-block-start: 60px; inset-inline-start: 45px; inline-size: 10px; block-size: 255px; background: white;"></div> | ||
<div style="position: absolute; inset-block-end: 0; inline-size: 100%; background: red; block-size: 75px;"></div> | ||
</div> | ||
</div> |
34 changes: 34 additions & 0 deletions
34
third_party/blink/web_tests/external/wpt/css/css-break/table/table-row-paint-vlr-rtl.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,34 @@ | ||
<!DOCTYPE html> | ||
<link rel="match" href="table-row-paint-vlr-rtl-ref.html"> | ||
<link rel="help" href="https://drafts.csswg.org/css-tables-3/#fragmentation"> | ||
<link rel="help" href="https://drafts.csswg.org/css-tables-3/#rendering"> | ||
<style> | ||
body { | ||
writing-mode: vertical-lr; | ||
direction: rtl; | ||
} | ||
.multicol { | ||
inline-size: 400px; | ||
block-size: 100px; | ||
columns: 4; | ||
column-fill: auto; | ||
gap: 0; | ||
} | ||
.pattern { | ||
background: repeating-linear-gradient(to right, orange, orange 30px, dodgerblue 30px, dodgerblue 60px); | ||
} | ||
</style> | ||
<div class="multicol"> | ||
<table style="border-spacing: 10px; inline-size: 100%;"> | ||
<caption style="background: red; block-size: 50px;"></caption> | ||
<tr class="pattern" style="block-size: 110px;"> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<tr class="pattern" style="block-size: 135px;"> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<caption style="caption-side: bottom; background: red; block-size: 75px;"></caption> | ||
</table> | ||
</div> |
26 changes: 26 additions & 0 deletions
26
...d_party/blink/web_tests/external/wpt/css/css-break/table/table-row-paint-vrl-rtl-ref.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,26 @@ | ||
<!DOCTYPE html> | ||
<style> | ||
body { | ||
writing-mode: vertical-rl; | ||
direction: rtl; | ||
} | ||
.multicol { | ||
inline-size: 400px; | ||
block-size: 100px; | ||
columns: 4; | ||
column-fill: auto; | ||
gap: 0; | ||
} | ||
.pattern { | ||
background: repeating-linear-gradient(to left, orange, orange 30px, dodgerblue 30px, dodgerblue 60px); | ||
} | ||
</style> | ||
<div class="multicol"> | ||
<div style="position: relative; inline-size: 100%; block-size: 400px;"> | ||
<div style="position: absolute; inset-block-start: 0; inline-size: 100%; background: red; block-size: 50px;"></div> | ||
<div class="pattern" style="position: absolute; inset-block-start: 60px; inset-inline-start: 10px; inline-size: calc(100% - 20px); block-size: 110px;"></div> | ||
<div class="pattern" style="position: absolute; inset-block-start: 180px; inset-inline-start: 10px; inline-size: calc(100% - 20px); block-size: 135px;"></div> | ||
<div style="position: absolute; inset-block-start: 60px; inset-inline-start: 45px; inline-size: 10px; block-size: 255px; background: white;"></div> | ||
<div style="position: absolute; inset-block-end: 0; inline-size: 100%; background: red; block-size: 75px;"></div> | ||
</div> | ||
</div> |
34 changes: 34 additions & 0 deletions
34
third_party/blink/web_tests/external/wpt/css/css-break/table/table-row-paint-vrl-rtl.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,34 @@ | ||
<!DOCTYPE html> | ||
<link rel="match" href="table-row-paint-vrl-rtl-ref.html"> | ||
<link rel="help" href="https://drafts.csswg.org/css-tables-3/#fragmentation"> | ||
<link rel="help" href="https://drafts.csswg.org/css-tables-3/#rendering"> | ||
<style> | ||
body { | ||
writing-mode: vertical-rl; | ||
direction: rtl; | ||
} | ||
.multicol { | ||
inline-size: 400px; | ||
block-size: 100px; | ||
columns: 4; | ||
column-fill: auto; | ||
gap: 0; | ||
} | ||
.pattern { | ||
background: repeating-linear-gradient(to left, orange, orange 30px, dodgerblue 30px, dodgerblue 60px); | ||
} | ||
</style> | ||
<div class="multicol"> | ||
<table style="border-spacing: 10px; inline-size: 100%;"> | ||
<caption style="background: red; block-size: 50px;"></caption> | ||
<tr class="pattern" style="block-size: 110px;"> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<tr class="pattern" style="block-size: 135px;"> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<caption style="caption-side: bottom; background: red; block-size: 75px;"></caption> | ||
</table> | ||
</div> |
22 changes: 22 additions & 0 deletions
22
...rty/blink/web_tests/external/wpt/css/css-break/table/table-section-paint-htb-ltr-ref.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,22 @@ | ||
<!DOCTYPE html> | ||
<style> | ||
.multicol { | ||
inline-size: 400px; | ||
block-size: 100px; | ||
columns: 4; | ||
column-fill: auto; | ||
gap: 0; | ||
} | ||
.pattern { | ||
background: repeating-linear-gradient(orange, orange 30px, dodgerblue 30px, dodgerblue 60px); | ||
} | ||
</style> | ||
<div class="multicol"> | ||
<div style="position: relative; inline-size: 100%; block-size: 400px;"> | ||
<div style="position: absolute; inset-block-start: 0; inline-size: 100%; background: red; block-size: 50px;"></div> | ||
<div class="pattern" style="position: absolute; inset-block-start: 60px; inset-inline-start: 10px; inline-size: calc(100% - 20px); block-size: 255px;"></div> | ||
<div style="position: absolute; inset-block-start: 170px; inline-size: 100%; block-size: 10px; background: white;"></div> | ||
<div style="position: absolute; inset-block-start: 60px; inset-inline-start: 45px; inline-size: 10px; block-size: 255px; background: white;"></div> | ||
<div style="position: absolute; inset-block-end: 0; inline-size: 100%; background: red; block-size: 75px;"></div> | ||
</div> | ||
</div> |
32 changes: 32 additions & 0 deletions
32
...d_party/blink/web_tests/external/wpt/css/css-break/table/table-section-paint-htb-ltr.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,32 @@ | ||
<!DOCTYPE html> | ||
<link rel="match" href="table-section-paint-htb-ltr-ref.html"> | ||
<link rel="help" href="https://drafts.csswg.org/css-tables-3/#fragmentation"> | ||
<link rel="help" href="https://drafts.csswg.org/css-tables-3/#rendering"> | ||
<style> | ||
.multicol { | ||
inline-size: 400px; | ||
block-size: 100px; | ||
columns: 4; | ||
column-fill: auto; | ||
gap: 0; | ||
} | ||
.pattern { | ||
background: repeating-linear-gradient(orange, orange 30px, dodgerblue 30px, dodgerblue 60px); | ||
} | ||
</style> | ||
<div class="multicol"> | ||
<table style="border-spacing: 10px; inline-size: 100%;"> | ||
<caption style="background: red; block-size: 50px;"></caption> | ||
<tbody class="pattern"> | ||
<tr style="block-size: 110px;"> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<tr style="block-size: 135px;"> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
</tbody> | ||
<caption style="caption-side: bottom; background: red; block-size: 75px;"></caption> | ||
</table> | ||
</div> |
26 changes: 26 additions & 0 deletions
26
...rty/blink/web_tests/external/wpt/css/css-break/table/table-section-paint-vlr-rtl-ref.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,26 @@ | ||
<!DOCTYPE html> | ||
<style> | ||
body { | ||
writing-mode: vertical-lr; | ||
direction: rtl; | ||
} | ||
.multicol { | ||
inline-size: 400px; | ||
block-size: 100px; | ||
columns: 4; | ||
column-fill: auto; | ||
gap: 0; | ||
} | ||
.pattern { | ||
background: repeating-linear-gradient(to right, orange, orange 30px, dodgerblue 30px, dodgerblue 60px); | ||
} | ||
</style> | ||
<div class="multicol"> | ||
<div style="position: relative; inline-size: 100%; block-size: 400px;"> | ||
<div style="position: absolute; inset-block-start: 0; inline-size: 100%; background: red; block-size: 50px;"></div> | ||
<div class="pattern" style="position: absolute; inset-block-start: 60px; inset-inline-start: 10px; inline-size: calc(100% - 20px); block-size: 255px;"></div> | ||
<div style="position: absolute; inset-block-start: 170px; inline-size: 100%; block-size: 10px; background: white;"></div> | ||
<div style="position: absolute; inset-block-start: 60px; inset-inline-start: 45px; inline-size: 10px; block-size: 255px; background: white;"></div> | ||
<div style="position: absolute; inset-block-end: 0; inline-size: 100%; background: red; block-size: 75px;"></div> | ||
</div> | ||
</div> |
36 changes: 36 additions & 0 deletions
36
...d_party/blink/web_tests/external/wpt/css/css-break/table/table-section-paint-vlr-rtl.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,36 @@ | ||
<!DOCTYPE html> | ||
<link rel="match" href="table-section-paint-vlr-rtl-ref.html"> | ||
<link rel="help" href="https://drafts.csswg.org/css-tables-3/#fragmentation"> | ||
<link rel="help" href="https://drafts.csswg.org/css-tables-3/#rendering"> | ||
<style> | ||
body { | ||
writing-mode: vertical-lr; | ||
direction: rtl; | ||
} | ||
.multicol { | ||
inline-size: 400px; | ||
block-size: 100px; | ||
columns: 4; | ||
column-fill: auto; | ||
gap: 0; | ||
} | ||
.pattern { | ||
background: repeating-linear-gradient(to right, orange, orange 30px, dodgerblue 30px, dodgerblue 60px); | ||
} | ||
</style> | ||
<div class="multicol"> | ||
<table style="border-spacing: 10px; inline-size: 100%;"> | ||
<caption style="background: red; block-size: 50px;"></caption> | ||
<tbody class="pattern"> | ||
<tr style="block-size: 110px;"> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<tr style="block-size: 135px;"> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
</tbody> | ||
<caption style="caption-side: bottom; background: red; block-size: 75px;"></caption> | ||
</table> | ||
</div> |
26 changes: 26 additions & 0 deletions
26
...rty/blink/web_tests/external/wpt/css/css-break/table/table-section-paint-vrl-rtl-ref.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,26 @@ | ||
<!DOCTYPE html> | ||
<style> | ||
body { | ||
writing-mode: vertical-rl; | ||
direction: rtl; | ||
} | ||
.multicol { | ||
inline-size: 400px; | ||
block-size: 100px; | ||
columns: 4; | ||
column-fill: auto; | ||
gap: 0; | ||
} | ||
.pattern { | ||
background: repeating-linear-gradient(to left, orange, orange 30px, dodgerblue 30px, dodgerblue 60px); | ||
} | ||
</style> | ||
<div class="multicol"> | ||
<div style="position: relative; inline-size: 100%; block-size: 400px;"> | ||
<div style="position: absolute; inset-block-start: 0; inline-size: 100%; background: red; block-size: 50px;"></div> | ||
<div class="pattern" style="position: absolute; inset-block-start: 60px; inset-inline-start: 10px; inline-size: calc(100% - 20px); block-size: 255px;"></div> | ||
<div style="position: absolute; inset-block-start: 170px; inline-size: 100%; block-size: 10px; background: white;"></div> | ||
<div style="position: absolute; inset-block-start: 60px; inset-inline-start: 45px; inline-size: 10px; block-size: 255px; background: white;"></div> | ||
<div style="position: absolute; inset-block-end: 0; inline-size: 100%; background: red; block-size: 75px;"></div> | ||
</div> | ||
</div> |
Oops, something went wrong.