mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Restore stripped whitespace before reflowing text fragments
Fixes #10200.
This commit is contained in:
parent
37799a4025
commit
99885b1950
5 changed files with 121 additions and 6 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue