aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/main/layout/text.rs
diff options
context:
space:
mode:
authorBrendan Zabarauskas <bjzaba@yahoo.com.au>2014-05-08 10:52:54 -0700
committerBrendan Zabarauskas <bjzaba@yahoo.com.au>2014-05-12 11:57:29 -0700
commit49df943649fec64a80b56bd26f0fb6454dc281bd (patch)
treea2246be072540a2bda307fecc3a9a8fccc7478af /src/components/main/layout/text.rs
parent68f9aad883fb7335b9e2dddb24e96fb61c5653bc (diff)
downloadservo-49df943649fec64a80b56bd26f0fb6454dc281bd.tar.gz
servo-49df943649fec64a80b56bd26f0fb6454dc281bd.zip
Add RangeIndex trait and iterator
This will allow for the definition of typesafe range units in the future, for example for glyph indices. This also adds a macro that allows for the easy implementation of new range index types.
Diffstat (limited to 'src/components/main/layout/text.rs')
-rw-r--r--src/components/main/layout/text.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/main/layout/text.rs b/src/components/main/layout/text.rs
index f254d07d5a4..1aa2b0c7866 100644
--- a/src/components/main/layout/text.rs
+++ b/src/components/main/layout/text.rs
@@ -232,7 +232,7 @@ impl TextRunScanner {
// Make new boxes with the run and adjusted text indices.
debug!("TextRunScanner: pushing box(es) in range: {}", self.clump);
- for i in clump.eachi() {
+ for i in clump.each_index() {
let logical_offset = i - self.clump.begin();
let range = new_ranges.get(logical_offset as uint);
if range.length() == 0 {