mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Get rid of unnecessary clamping in text shaping
This commit is contained in:
parent
83feda3ac2
commit
4d05bf23b8
1 changed files with 0 additions and 3 deletions
|
@ -424,9 +424,6 @@ impl Shaper {
|
|||
char_byte_span.start = char_byte_span.end;
|
||||
}
|
||||
|
||||
// clamp to end of text. (I don't think this will be necessary, but..)
|
||||
covered_byte_span.end = cmp::min(covered_byte_span.end, byte_max);
|
||||
|
||||
// fast path: 1-to-1 mapping of single char and single glyph.
|
||||
if glyph_span.len() == 1 && !glyph_spans_multiple_characters {
|
||||
// TODO(Issue #214): cluster ranges need to be computed before
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue