mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Remove table_style; tables already get their backgrounds painted correctly
This commit is contained in:
parent
180b29ae66
commit
c36335e031
1 changed files with 0 additions and 7 deletions
|
@ -993,7 +993,6 @@ struct TableCellStyleIterator<'table> {
|
||||||
column_styles: Vec<ColumnStyle<'table>>,
|
column_styles: Vec<ColumnStyle<'table>>,
|
||||||
row_iterator: TableRowAndGroupIterator<'table>,
|
row_iterator: TableRowAndGroupIterator<'table>,
|
||||||
row_info: Option<TableCellStyleIteratorRowInfo<'table>>,
|
row_info: Option<TableCellStyleIteratorRowInfo<'table>>,
|
||||||
table_style: &'table ComputedValues,
|
|
||||||
column_index: TableCellColumnIndexData,
|
column_index: TableCellColumnIndexData,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1020,14 +1019,12 @@ impl<'table> TableCellStyleIterator<'table> {
|
||||||
TableCellStyleIterator {
|
TableCellStyleIterator {
|
||||||
column_styles, row_iterator, row_info,
|
column_styles, row_iterator, row_info,
|
||||||
column_index: Default::default(),
|
column_index: Default::default(),
|
||||||
table_style: table.block_flow.fragment.style(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct TableCellStyleInfo<'table> {
|
struct TableCellStyleInfo<'table> {
|
||||||
cell: &'table TableCellFlow,
|
cell: &'table TableCellFlow,
|
||||||
table_style: &'table ComputedValues,
|
|
||||||
colgroup_style: Option<&'table ComputedValues>,
|
colgroup_style: Option<&'table ComputedValues>,
|
||||||
col_style: Option<&'table ComputedValues>,
|
col_style: Option<&'table ComputedValues>,
|
||||||
rowgroup_style: Option<&'table ComputedValues>,
|
rowgroup_style: Option<&'table ComputedValues>,
|
||||||
|
@ -1120,7 +1117,6 @@ impl<'table> Iterator for TableCellStyleIterator<'table> {
|
||||||
col_style,
|
col_style,
|
||||||
rowgroup_style,
|
rowgroup_style,
|
||||||
row_style,
|
row_style,
|
||||||
table_style: self.table_style,
|
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
// next row
|
// next row
|
||||||
|
@ -1179,9 +1175,6 @@ impl<'table> TableCellStyleInfo<'table> {
|
||||||
sty_ptr = sty as *const _;
|
sty_ptr = sty as *const _;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
build_dl(self.table_style, &mut state);
|
|
||||||
|
|
||||||
if let Some(ref sty) = self.colgroup_style {
|
if let Some(ref sty) = self.colgroup_style {
|
||||||
build_dl(&sty, &mut state);
|
build_dl(&sty, &mut state);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue