mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
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:
parent
c1931ee2cb
commit
d110d8710a
1 changed files with 1 additions and 8 deletions
|
@ -1371,14 +1371,7 @@ impl<'a> TableLayout<'a> {
|
||||||
.get_row_measure_for_row_at_index(writing_mode, row_index);
|
.get_row_measure_for_row_at_index(writing_mode, row_index);
|
||||||
row_sizes[row_index].max_assign(row_measure.content_sizes.min_content);
|
row_sizes[row_index].max_assign(row_measure.content_sizes.min_content);
|
||||||
|
|
||||||
let mut percentage = match self.table.rows.get(row_index) {
|
let mut percentage = row_measure.percentage.0;
|
||||||
Some(row) => {
|
|
||||||
get_size_percentage_contribution_from_style(&row.style, writing_mode)
|
|
||||||
.block
|
|
||||||
.0
|
|
||||||
},
|
|
||||||
None => 0.,
|
|
||||||
};
|
|
||||||
for column_index in 0..self.table.size.width {
|
for column_index in 0..self.table.size.width {
|
||||||
let cell_percentage = self.cell_measures[row_index][column_index]
|
let cell_percentage = self.cell_measures[row_index][column_index]
|
||||||
.block
|
.block
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue