diff --git a/components/layout/construct.rs b/components/layout/construct.rs index 36c5742e053..39bdbfa5093 100644 --- a/components/layout/construct.rs +++ b/components/layout/construct.rs @@ -1093,7 +1093,6 @@ impl<'a, 'ln, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode<'ln>> let construction_result = self.build_flow_for_block_like(column_flow, node); let mut abs_descendants = AbsoluteDescendants::new(); - let mut fixed_descendants = AbsoluteDescendants::new(); if let ConstructionResult::Flow(column_flow, column_abs_descendants) = construction_result { flow.add_new_child(column_flow); @@ -1109,13 +1108,9 @@ impl<'a, 'ln, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode<'ln>> abs_descendants = AbsoluteDescendants::new(); - let is_fixed_positioned = flow.as_block().is_fixed(); let is_absolutely_positioned = flow::base(&*flow).flags.contains(IS_ABSOLUTELY_POSITIONED); - if is_fixed_positioned { - // Send itself along with the other fixed descendants. - fixed_descendants.push(flow.clone()); - } else if is_absolutely_positioned { + if is_absolutely_positioned { // This is now the only absolute flow in the subtree which hasn't yet // reached its containing block. abs_descendants.push(flow.clone()); @@ -1140,7 +1135,6 @@ impl<'a, 'ln, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode<'ln>> let construction_result = self.build_flow_for_block_like(table_flow, node); let mut abs_descendants = AbsoluteDescendants::new(); - let mut fixed_descendants = AbsoluteDescendants::new(); // The order of the caption and the table are not necessarily the same order as in the DOM // tree. All caption blocks are placed before or after the table flow, depending on the @@ -1168,13 +1162,9 @@ impl<'a, 'ln, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode<'ln>> abs_descendants = AbsoluteDescendants::new(); - let is_fixed_positioned = wrapper_flow.as_block().is_fixed(); let is_absolutely_positioned = flow::base(&*wrapper_flow).flags.contains(IS_ABSOLUTELY_POSITIONED); - if is_fixed_positioned { - // Send itself along with the other fixed descendants. - fixed_descendants.push(wrapper_flow.clone()); - } else if is_absolutely_positioned { + if is_absolutely_positioned { // This is now the only absolute flow in the subtree which hasn't yet // reached its containing block. abs_descendants.push(wrapper_flow.clone());