From 0a24c2f03cc8c90798c790b3d8633c17165d63e1 Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Wed, 16 Aug 2017 13:32:48 +0200 Subject: 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. --- components/layout/inline.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/layout/inline.rs') diff --git a/components/layout/inline.rs b/components/layout/inline.rs index 663d8509516..2a1aa3075f2 100644 --- a/components/layout/inline.rs +++ b/components/layout/inline.rs @@ -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. -- cgit v1.2.3