mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -404,7 +404,7 @@ pub trait Flow: fmt::Debug + Sync + Send + 'static {
|
|||
|
||||
/// Returns true if this is an absolute containing block.
|
||||
fn is_absolute_containing_block(&self) -> bool {
|
||||
false
|
||||
self.contains_positioned_fragments()
|
||||
}
|
||||
|
||||
/// Updates the inline position of a child flow during the assign-height traversal. At present,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue