aboutsummaryrefslogtreecommitdiffstats
path: root/SECURITY.md
diff options
context:
space:
mode:
authorOriol Brufau <obrufau@igalia.com>2024-03-15 13:45:23 +0100
committerGitHub <noreply@github.com>2024-03-15 12:45:23 +0000
commit99c14c83ed0e2412bb17f0f58251bf4786550c22 (patch)
tree7e41178a0a33060c50c9030ed21198e32b6f5e3c /SECURITY.md
parent74b5f798cd22fa6b8911cdab2561efcf87cf0041 (diff)
downloadservo-99c14c83ed0e2412bb17f0f58251bf4786550c22.tar.gz
servo-99c14c83ed0e2412bb17f0f58251bf4786550c22.zip
Obey white-space when intrinsically sizing an IFC (#31660)
The old logic was assuming that all whitespace was a break opportunity, and that no newlines would be preserved. Note that text shaping considers the advance of a newline to be the same as a space. This was problematic because if we have a segment with a preserved space and newline, only the advance of the space should contrinute to the size of the block container. Therefore, I'm changing the breaker logic in other to have newline characters in their own segment. Then glyph_run_is_whitespace_ending_with_preserved_newline can just be renamed to glyph_run_is_preserved_newline. This patch is still not perfect because it doesn't check allow_wrap(), so `nowrap` is treated like `normal`, and `pre-wrap` like `pre`.
Diffstat (limited to 'SECURITY.md')
0 files changed, 0 insertions, 0 deletions