aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/gfx/text/shaping/harfbuzz.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/components/gfx/text/shaping/harfbuzz.rs b/components/gfx/text/shaping/harfbuzz.rs
index 16057ab88b7..ef472d8f4cc 100644
--- a/components/gfx/text/shaping/harfbuzz.rs
+++ b/components/gfx/text/shaping/harfbuzz.rs
@@ -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