diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2018-02-16 13:49:42 -0800 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2018-02-16 16:01:52 -0800 |
commit | c2de3eb9accea7350bbd161e945aa85245e7f6fc (patch) | |
tree | 1fbe2e118b5981849e09b1940d5a1143f60d8b43 /components/layout/table.rs | |
parent | f796823b944e2434a14458283c980eeb3422ba8d (diff) | |
download | servo-c2de3eb9accea7350bbd161e945aa85245e7f6fc.tar.gz servo-c2de3eb9accea7350bbd161e945aa85245e7f6fc.zip |
Check visibility beforehand
Diffstat (limited to 'components/layout/table.rs')
-rw-r--r-- | components/layout/table.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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 |