aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/inline.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2023-12-21 23:49:24 +0100
committerGitHub <noreply@github.com>2023-12-21 22:49:24 +0000
commit709d00583fb28fb668f10eab1f2f16f07c331078 (patch)
treeb4c0965c01aa51394b0b84c2fad1d70428d99be8 /components/layout/inline.rs
parent8e31daeb6ba01c9af13b71280a002dc70a13ef0a (diff)
downloadservo-709d00583fb28fb668f10eab1f2f16f07c331078.tar.gz
servo-709d00583fb28fb668f10eab1f2f16f07c331078.zip
layout: Make all word separators justification opportunities (#30866)
This change adapts both layout and legacy layout to the specification which gives a list of word separators to use as justification opportunities.
Diffstat (limited to 'components/layout/inline.rs')
-rw-r--r--components/layout/inline.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout/inline.rs b/components/layout/inline.rs
index e9ca463090e..d8e339d3a0d 100644
--- a/components/layout/inline.rs
+++ b/components/layout/inline.rs
@@ -1156,7 +1156,7 @@ impl InlineFlow {
.run
.character_slices_in_range(&fragment_range)
{
- expansion_opportunities += slice.glyphs.space_count_in_range(&slice.range)
+ expansion_opportunities += slice.glyphs.word_separator_count_in_range(&slice.range)
}
}