From c2de3eb9accea7350bbd161e945aa85245e7f6fc Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Fri, 16 Feb 2018 13:49:42 -0800 Subject: [PATCH] Check visibility beforehand --- components/layout/table.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/layout/table.rs b/components/layout/table.rs index 269267010a6..fee95d1af7a 100644 --- a/components/layout/table.rs +++ b/components/layout/table.rs @@ -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