aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/formatting_contexts.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2020-07-23 16:43:57 +0200
committerSimon Sapin <simon.sapin@exyr.org>2020-07-23 16:43:57 +0200
commit82e274aec996881074dfe79f64d0fd05be8e213c (patch)
treecfcb82a19d3e06e8c714b0d46a2c1f050f02796d /components/layout_2020/formatting_contexts.rs
parent9261cf6eadb45d3136fc35d0c0a75156746f849b (diff)
downloadservo-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.rs4
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,
),
)
},