style: Kill -servo-under-display-none.

Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
Emilio Cobos Álvarez 2017-09-17 00:17:58 +02:00
parent 7d91b30172
commit 2c88248b87
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
5 changed files with 8 additions and 43 deletions

View file

@ -1451,7 +1451,7 @@ impl<'a, ConcreteThreadSafeLayoutNode> PostorderNodeMutTraversal<ConcreteThreadS
node.insert_flags(HAS_NEWLY_CONSTRUCTED_FLOW);
// Bail out if this node has an ancestor with display: none.
if node.style(self.style_context()).get_inheritedbox()._servo_under_display_none.0 {
if node.style(self.style_context()).is_in_display_none_subtree() {
self.set_flow_construction_result(node, ConstructionResult::None);
return;
}