aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/table.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2018-02-16 13:49:42 -0800
committerManish Goregaokar <manishsmail@gmail.com>2018-02-16 16:01:52 -0800
commitc2de3eb9accea7350bbd161e945aa85245e7f6fc (patch)
tree1fbe2e118b5981849e09b1940d5a1143f60d8b43 /components/layout/table.rs
parentf796823b944e2434a14458283c980eeb3422ba8d (diff)
downloadservo-c2de3eb9accea7350bbd161e945aa85245e7f6fc.tar.gz
servo-c2de3eb9accea7350bbd161e945aa85245e7f6fc.zip
Check visibility beforehand
Diffstat (limited to 'components/layout/table.rs')
-rw-r--r--components/layout/table.rs3
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