aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/inline.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/inline.rs')
-rw-r--r--components/layout/inline.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/layout/inline.rs b/components/layout/inline.rs
index cd2a822f317..228ef6c9f20 100644
--- a/components/layout/inline.rs
+++ b/components/layout/inline.rs
@@ -527,6 +527,9 @@ impl LineBreaker {
mut fragment: Fragment,
flow: &InlineFlow,
layout_context: &LayoutContext) {
+ // Undo any whitespace stripping from previous reflows.
+ fragment.reset_text_range_and_inline_size();
+
// Determine initial placement for the fragment if we need to.
//
// Also, determine whether we can legally break the line before, or inside, this fragment.