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:
Martin Robinson 2017-08-16 13:32:48 +02:00
parent ee73cb618a
commit 0a24c2f03c
4 changed files with 17 additions and 28 deletions

View file

@ -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,