mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Remove unused fixed_descendants: AbsoluteDescendants
… in `construct.rs` for multicol and table wrappers.
This commit is contained in:
parent
5498b54347
commit
f766e94259
1 changed files with 2 additions and 12 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue