Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #20128 - Manishearth:rowspan, r=mbrubeck
Rowspan support for tables fixes #20092 This just contains the first steps. We apply a naive algorithm: Spanning cells apply a pressure equal to `block_size / rowspan` on each row they are in. We move table row block size computation into the tables, and make it two pass. In the first pass we compute the sizes of each row, and in the second pass we assign them, adding them up for any involved cells. This is missing: - [x] Accounting for border sizes - [x] Applying pressure to rows that are not the row containing the cell - [ ] Reducing pressure on future rows if the current row is able to accomodate more of the cell - [x] For tables containing both rows and rowgroups, reset the rowspan info when we hit a rowgroup - [x] Correctly handle overflowing rowspans cc @mbrubeck @pcwalton <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20128) <!-- Reviewable:end -->
- Loading branch information
Showing
8 changed files
with
295 additions
and
103 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
Oops, something went wrong.