diff options
author | Matt Brubeck <mbrubeck@limpet.net> | 2016-03-28 12:16:09 -0700 |
---|---|---|
committer | Matt Brubeck <mbrubeck@limpet.net> | 2016-03-28 14:04:35 -0700 |
commit | 99885b1950695c2da0a62b418cbc2f35ca04150b (patch) | |
tree | 70fecc64b97dba591af402b71c325b97e1f50d12 /components/layout/inline.rs | |
parent | 37799a40251ae4df695d2257f57063c37d739329 (diff) | |
download | servo-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.rs | 3 |
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. |