diff options
author | Martin Robinson <mrobinson@igalia.com> | 2017-08-16 13:32:48 +0200 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2017-08-16 13:32:48 +0200 |
commit | 0a24c2f03cc8c90798c790b3d8633c17165d63e1 (patch) | |
tree | 6e7435643b01aef9d95493e6a56b9390d2f663d0 /components/layout/inline.rs | |
parent | ee73cb618a42e8c45b5fb83fe026ac611df6913f (diff) | |
download | servo-0a24c2f03cc8c90798c790b3d8633c17165d63e1.tar.gz servo-0a24c2f03cc8c90798c790b3d8633c17165d63e1.zip |
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.
Diffstat (limited to 'components/layout/inline.rs')
-rw-r--r-- | components/layout/inline.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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. |