aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/lib.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-04-28 20:22:09 -0700
committerbors-servo <lbergstrom+bors@mozilla.com>2016-04-28 20:22:09 -0700
commitcf121ad8dff90b8fa55558ca9bdcbfe29512a617 (patch)
tree8f8ff7f5e68b18eb228acbc1448a7c4f451e1e69 /components/script/lib.rs
parent1177ef5869e02b5129ebde6fa9780c93d362e16c (diff)
parentc4872d95445636ef4dec45cbfc5c2d643c4b9441 (diff)
downloadservo-cf121ad8dff90b8fa55558ca9bdcbfe29512a617.tar.gz
servo-cf121ad8dff90b8fa55558ca9bdcbfe29512a617.zip
Auto merge of #10895 - mbrubeck:byteindex, r=pcwalton
Use byte indices instead of char indices for text runs Replace character indices with UTF-8 byte offsets throughout all code dealing with text runs. This eliminates a lot of complexity when converting from one to the other, and interoperates better with the rest of the Rust ecosystem. For most code this is just a simple replacement of char indices with byte indices. In a few places like glyph storage and text fragment scanning, it also lets us get rid of code that existed only to map between bytes and chars. Also includes some related fixes to text shaping, discovered while working on this conversion. See the commit messages for details. r? @pcwalton <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10895) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/lib.rs')
-rw-r--r--components/script/lib.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/components/script/lib.rs b/components/script/lib.rs
index 43d42d47a95..dde2063cfc3 100644
--- a/components/script/lib.rs
+++ b/components/script/lib.rs
@@ -59,7 +59,6 @@ extern crate phf;
#[macro_use]
extern crate profile_traits;
extern crate rand;
-extern crate range;
extern crate ref_filter_map;
extern crate ref_slice;
extern crate regex;