aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/inline.rs
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2016-03-28 12:16:09 -0700
committerMatt Brubeck <mbrubeck@limpet.net>2016-03-28 14:04:35 -0700
commit99885b1950695c2da0a62b418cbc2f35ca04150b (patch)
tree70fecc64b97dba591af402b71c325b97e1f50d12 /components/layout/inline.rs
parent37799a40251ae4df695d2257f57063c37d739329 (diff)
downloadservo-99885b1950695c2da0a62b418cbc2f35ca04150b.tar.gz
servo-99885b1950695c2da0a62b418cbc2f35ca04150b.zip
Restore stripped whitespace before reflowing text fragments
Fixes #10200.
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.