diff options
author | Pu Xingyu <pu.stshine@gmail.com> | 2017-08-22 01:49:28 +0800 |
---|---|---|
committer | Pu Xingyu <pu.stshine@gmail.com> | 2017-08-29 01:30:09 +0800 |
commit | 9103743d0c55ef405599f3ea4170b6d1c5e4d00b (patch) | |
tree | 0220c942a31a1adfe2e34d9904f7bc18dd738630 /components/layout/flow.rs | |
parent | 6a1b0d0526b85f1db50b6131cc0ffd31b5d78a63 (diff) | |
download | servo-9103743d0c55ef405599f3ea4170b6d1c5e4d00b.tar.gz servo-9103743d0c55ef405599f3ea4170b6d1c5e4d00b.zip |
layout: Stop calling normal block size assignment for flex container
No need to call the `assign_block_size_block_base()` method of normal
block since it is implemented for CSS2.
Diffstat (limited to 'components/layout/flow.rs')
-rw-r--r-- | components/layout/flow.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/components/layout/flow.rs b/components/layout/flow.rs index b683dd0d2d1..47a41b4c883 100644 --- a/components/layout/flow.rs +++ b/components/layout/flow.rs @@ -1279,9 +1279,7 @@ impl<'a> ImmutableFlowUtils for &'a Flow { return Some(base(kid).position.start.b + baseline_offset) } } - if kid.is_block_like() && - kid.as_block().formatting_context_type() == FormattingContextType::None && - !base(kid).flags.contains(IS_ABSOLUTELY_POSITIONED) { + if kid.is_block_like() && !base(kid).flags.contains(IS_ABSOLUTELY_POSITIONED) { if let Some(baseline_offset) = kid.baseline_offset_of_last_line_box_in_flow() { return Some(base(kid).position.start.b + baseline_offset) } |