Check visibility beforehand

This commit is contained in:
Manish Goregaokar 2018-02-16 13:49:42 -08:00
parent f796823b94
commit c2de3eb9ac

View file

@ -1147,7 +1147,8 @@ impl<'table> Iterator for TableCellStyleIterator<'table> {
impl<'table> TableCellStyleInfo<'table> {
fn build_display_list(&self, mut state: &mut DisplayListBuildState) {
if !self.cell.visible {
if !self.cell.visible || self.cell.block_flow.fragment.style()
.get_inheritedbox().visibility != Visibility::Visible {
return
}
let border_painting_mode = match self.cell.block_flow