layout: Do whitespace collapse during breaking and shaping (#31322)

This moves white space collapse to right before breaking and shaping
happens, which is more similar to what happens in legacy layout. This is
the first step toward making this procedure more efficient (avoiding
string copies) and also implementing support for `text-transform`.

Co-authored-by: Rakhi Sharma <atbrakhi@igalia.com>
This commit is contained in:
Martin Robinson 2024-02-14 00:08:00 +01:00 committed by GitHub
parent 6fe7cec569
commit 6d73832009
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 333 additions and 253 deletions

View file

@ -153,7 +153,6 @@ where
(&run.info).into(),
run.info.style,
run.text.into(),
false, /* has_uncollapsible_content */
)
});
let bfc = BlockFormattingContext::construct_for_text_runs(