aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/fragment_tree/containing_block.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout_2020/fragment_tree/containing_block.rs')
-rw-r--r--components/layout_2020/fragment_tree/containing_block.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/components/layout_2020/fragment_tree/containing_block.rs b/components/layout_2020/fragment_tree/containing_block.rs
index 5eb14780c78..042c3e34a6a 100644
--- a/components/layout_2020/fragment_tree/containing_block.rs
+++ b/components/layout_2020/fragment_tree/containing_block.rs
@@ -67,11 +67,11 @@ impl<'a, T> ContainingBlockManager<'a, T> {
&self,
for_non_absolute_descendants: &'a T,
) -> Self {
- return ContainingBlockManager {
+ ContainingBlockManager {
for_non_absolute_descendants,
for_absolute_descendants: self.for_absolute_descendants,
for_absolute_and_fixed_descendants: self.for_absolute_and_fixed_descendants,
- };
+ }
}
pub(crate) fn new_for_absolute_descendants(
@@ -79,11 +79,11 @@ impl<'a, T> ContainingBlockManager<'a, T> {
for_non_absolute_descendants: &'a T,
for_absolute_descendants: &'a T,
) -> Self {
- return ContainingBlockManager {
+ ContainingBlockManager {
for_non_absolute_descendants,
for_absolute_descendants: Some(for_absolute_descendants),
for_absolute_and_fixed_descendants: self.for_absolute_and_fixed_descendants,
- };
+ }
}
pub(crate) fn new_for_absolute_and_fixed_descendants(
@@ -91,10 +91,10 @@ impl<'a, T> ContainingBlockManager<'a, T> {
for_non_absolute_descendants: &'a T,
for_absolute_and_fixed_descendants: &'a T,
) -> Self {
- return ContainingBlockManager {
+ ContainingBlockManager {
for_non_absolute_descendants,
for_absolute_descendants: None,
for_absolute_and_fixed_descendants,
- };
+ }
}
}