diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2020-07-23 16:43:57 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2020-07-23 16:43:57 +0200 |
commit | 82e274aec996881074dfe79f64d0fd05be8e213c (patch) | |
tree | cfcb82a19d3e06e8c714b0d46a2c1f050f02796d /components/layout_2020/formatting_contexts.rs | |
parent | 9261cf6eadb45d3136fc35d0c0a75156746f849b (diff) | |
download | servo-82e274aec996881074dfe79f64d0fd05be8e213c.tar.gz servo-82e274aec996881074dfe79f64d0fd05be8e213c.zip |
Make a bool for `display: list-item` available to flow box construction
Diffstat (limited to 'components/layout_2020/formatting_contexts.rs')
-rw-r--r-- | components/layout_2020/formatting_contexts.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/layout_2020/formatting_contexts.rs b/components/layout_2020/formatting_contexts.rs index 0ec2bf1144c..a311eb8a3a2 100644 --- a/components/layout_2020/formatting_contexts.rs +++ b/components/layout_2020/formatting_contexts.rs @@ -71,13 +71,15 @@ impl IndependentFormattingContext { match contents.try_into() { Ok(non_replaced) => { let contents = match display_inside { - DisplayInside::Flow | DisplayInside::FlowRoot => { + DisplayInside::Flow { is_list_item } | + DisplayInside::FlowRoot { is_list_item } => { NonReplacedFormattingContextContents::Flow( BlockFormattingContext::construct( context, info, non_replaced, propagated_text_decoration_line, + is_list_item, ), ) }, |