aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/flow.rs
diff options
context:
space:
mode:
authorPu Xingyu <pu.stshine@gmail.com>2017-08-22 01:49:28 +0800
committerPu Xingyu <pu.stshine@gmail.com>2017-08-29 01:30:09 +0800
commit9103743d0c55ef405599f3ea4170b6d1c5e4d00b (patch)
tree0220c942a31a1adfe2e34d9904f7bc18dd738630 /components/layout/flow.rs
parent6a1b0d0526b85f1db50b6131cc0ffd31b5d78a63 (diff)
downloadservo-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.rs4
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)
}