mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Have transforms and filters be CBs for all descendants in layout_2020
This is a feature that was never properly implemented in the previous layout system. We still need to preserve their in-tree order in the display list though.
This commit is contained in:
parent
d42835b238
commit
8de55695e4
16 changed files with 354 additions and 217 deletions
|
@ -137,7 +137,8 @@ impl BoxTreeRoot {
|
|||
};
|
||||
|
||||
let dummy_tree_rank = 0;
|
||||
let mut positioning_context = PositioningContext::new_for_initial_containing_block();
|
||||
let mut positioning_context =
|
||||
PositioningContext::new_for_containing_block_for_all_descendants();
|
||||
let mut independent_layout = self.0.layout(
|
||||
layout_context,
|
||||
&mut positioning_context,
|
||||
|
@ -145,7 +146,7 @@ impl BoxTreeRoot {
|
|||
dummy_tree_rank,
|
||||
);
|
||||
|
||||
positioning_context.layout_in_initial_containing_block(
|
||||
positioning_context.layout_initial_containing_block_children(
|
||||
layout_context,
|
||||
&initial_containing_block,
|
||||
&mut independent_layout.fragments,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue