mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
style: Kill -servo-under-display-none.
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
parent
7d91b30172
commit
2c88248b87
5 changed files with 8 additions and 43 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue