mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Use the is_absolute_containing_block method everywhere
This is a better approach than relying on contains_positioned_fragments, because in the future other properties will create absolute containing blocks.
This commit is contained in:
parent
ee73cb618a
commit
0a24c2f03c
4 changed files with 17 additions and 28 deletions
|
@ -1486,7 +1486,7 @@ impl Flow for InlineFlow {
|
|||
indentation = Au(0)
|
||||
}
|
||||
|
||||
if self.contains_positioned_fragments() {
|
||||
if self.is_absolute_containing_block() {
|
||||
// Assign block-sizes for all flows in this absolute flow tree.
|
||||
// This is preorder because the block-size of an absolute flow may depend on
|
||||
// the block-size of its containing block, which may also be an absolute flow.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue