diff options
author | Matt Brubeck <mbrubeck@limpet.net> | 2016-04-27 10:58:16 -0700 |
---|---|---|
committer | Matt Brubeck <mbrubeck@limpet.net> | 2016-04-27 10:58:16 -0700 |
commit | 4d05bf23b82b7e36210aaa2e911ec4c79a1ed2d0 (patch) | |
tree | 105cf2050605e4faee57ffb60ead98bbb6b5b79e | |
parent | 83feda3ac2d2d85f682fa7c3ed70ade6f5c0ba69 (diff) | |
download | servo-4d05bf23b82b7e36210aaa2e911ec4c79a1ed2d0.tar.gz servo-4d05bf23b82b7e36210aaa2e911ec4c79a1ed2d0.zip |
Get rid of unnecessary clamping in text shaping
-rw-r--r-- | components/gfx/text/shaping/harfbuzz.rs | 3 |
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 |