mirror of
https://github.com/servo/servo.git
synced 2025-07-22 06:43:40 +01:00
Fix Servo build.
This commit is contained in:
parent
f4cff20649
commit
bbb59614fa
3 changed files with 16 additions and 14 deletions
|
@ -1533,8 +1533,9 @@ impl<'a, ConcreteThreadSafeLayoutNode> PostorderNodeMutTraversal<ConcreteThreadS
|
|||
|
||||
let style = node.style(self.style_context());
|
||||
|
||||
// Bail out if this node has an ancestor with display: none.
|
||||
if style.is_in_display_none_subtree() {
|
||||
// Bail out if this node is display: none. The style system guarantees
|
||||
// that we don't arrive here for children of those.
|
||||
if style.get_box().display.is_none() {
|
||||
self.set_flow_construction_result(node, ConstructionResult::None);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue