Don't recompute percentage contribution for table row (#33575)

We already computed it as part of the row measure.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Oriol Brufau 2024-09-28 02:35:41 -07:00 committed by GitHub
parent c1931ee2cb
commit d110d8710a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1371,14 +1371,7 @@ impl<'a> TableLayout<'a> {
.get_row_measure_for_row_at_index(writing_mode, row_index);
row_sizes[row_index].max_assign(row_measure.content_sizes.min_content);
let mut percentage = match self.table.rows.get(row_index) {
Some(row) => {
get_size_percentage_contribution_from_style(&row.style, writing_mode)
.block
.0
},
None => 0.,
};
let mut percentage = row_measure.percentage.0;
for column_index in 0..self.table.size.width {
let cell_percentage = self.cell_measures[row_index][column_index]
.block