aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/flow/construct.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2024-07-03 17:15:31 +0200
committerGitHub <noreply@github.com>2024-07-03 15:15:31 +0000
commit4e79ac57018039b2d3f76e4a4616574e5d90505f (patch)
tree4bf2be5b94636e81b67b6bae8c2c55737a45703f /components/layout_2020/flow/construct.rs
parent4357751f285c79bf37a8e7a02d4c8dc4f7a8ae69 (diff)
downloadservo-4e79ac57018039b2d3f76e4a4616574e5d90505f.tar.gz
servo-4e79ac57018039b2d3f76e4a4616574e5d90505f.zip
layout: Allow rendering LineItems independent of inline box (#32666)
Refactor inline layout to allow rendering line items in the second stage to be rendered in any order, independent of their parent inline box. This will allow line items to be reordered, effectively allowing the splitting of inline boxes, for the purposes of BiDi and any other inline reordering feature. Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Rakhi Sharma <atbrakhi@igalia.com>
Diffstat (limited to 'components/layout_2020/flow/construct.rs')
-rw-r--r--components/layout_2020/flow/construct.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/layout_2020/flow/construct.rs b/components/layout_2020/flow/construct.rs
index 986ae3e46d7..c52790d6348 100644
--- a/components/layout_2020/flow/construct.rs
+++ b/components/layout_2020/flow/construct.rs
@@ -14,7 +14,8 @@ use style::str::char_is_whitespace;
use style::values::specified::text::TextDecorationLine;
use super::inline::construct::InlineFormattingContextBuilder;
-use super::inline::{InlineBox, InlineFormattingContext};
+use super::inline::inline_box::InlineBox;
+use super::inline::InlineFormattingContext;
use super::OutsideMarker;
use crate::cell::ArcRefCell;
use crate::context::LayoutContext;