mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Implemented display: inline-flex
This commit is contained in:
parent
987b640c54
commit
e31ee04dad
9 changed files with 28 additions and 26 deletions
|
@ -566,7 +566,7 @@ impl BlockFlow {
|
|||
} else {
|
||||
BlockType::FloatNonReplaced
|
||||
}
|
||||
} else if self.is_inline_block() {
|
||||
} else if self.is_inline_block_or_inline_flex() {
|
||||
if self.fragment.is_replaced() {
|
||||
BlockType::InlineBlockReplaced
|
||||
} else {
|
||||
|
@ -1557,8 +1557,9 @@ impl BlockFlow {
|
|||
debug_assert_eq!(self.fragment.margin_box_inline_size(), self.base.position.size.inline);
|
||||
}
|
||||
|
||||
fn is_inline_block(&self) -> bool {
|
||||
self.fragment.style().get_box().display == display::T::inline_block
|
||||
fn is_inline_block_or_inline_flex(&self) -> bool {
|
||||
self.fragment.style().get_box().display == display::T::inline_block ||
|
||||
self.fragment.style().get_box().display == display::T::inline_flex
|
||||
}
|
||||
|
||||
/// Computes the content portion (only) of the intrinsic inline sizes of this flow. This is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue