Restore stripped whitespace before reflowing text fragments

Fixes #10200.
This commit is contained in:
Matt Brubeck 2016-03-28 12:16:09 -07:00
parent 37799a4025
commit 99885b1950
5 changed files with 121 additions and 6 deletions

View file

@ -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.