aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/flexbox/construct.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout_2020/flexbox/construct.rs')
-rw-r--r--components/layout_2020/flexbox/construct.rs13
1 files changed, 7 insertions, 6 deletions
diff --git a/components/layout_2020/flexbox/construct.rs b/components/layout_2020/flexbox/construct.rs
index 22215651395..55e94b35655 100644
--- a/components/layout_2020/flexbox/construct.rs
+++ b/components/layout_2020/flexbox/construct.rs
@@ -148,12 +148,13 @@ where
.into_par_iter()
.map(|job| match job {
FlexLevelJob::TextRuns(runs) => ArcRefCell::new(FlexLevelBox::FlexItem({
- let runs = runs.into_iter().map(|run| crate::flow::text_run::TextRun {
- base_fragment_info: (&run.info).into(),
- text: run.text.into(),
- parent_style: run.info.style,
- has_uncollapsible_content: false,
- shaped_text: None,
+ let runs = runs.into_iter().map(|run| {
+ crate::flow::text_run::TextRun::new(
+ (&run.info).into(),
+ run.info.style,
+ run.text.into(),
+ false, /* has_uncollapsible_content */
+ )
});
let bfc = BlockFormattingContext::construct_for_text_runs(
runs,