aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/main/layout/text.rs
diff options
context:
space:
mode:
authorBrendan Zabarauskas <bjzaba@yahoo.com.au>2014-05-07 11:40:32 -0700
committerBrendan Zabarauskas <bjzaba@yahoo.com.au>2014-05-07 15:05:59 -0700
commit8c6eb08dcbc163cdca836bec21f89210a133085e (patch)
treed51efd59e57e7194f2bfb84cf9fa1789676cdcfc /src/components/main/layout/text.rs
parent15d3257a29125103e368787f7e9790ee4314b29f (diff)
downloadservo-8c6eb08dcbc163cdca836bec21f89210a133085e.tar.gz
servo-8c6eb08dcbc163cdca836bec21f89210a133085e.zip
Make range generic
Diffstat (limited to 'src/components/main/layout/text.rs')
-rw-r--r--src/components/main/layout/text.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/main/layout/text.rs b/src/components/main/layout/text.rs
index c70aa8c0cb1..83dfb9d1b78 100644
--- a/src/components/main/layout/text.rs
+++ b/src/components/main/layout/text.rs
@@ -31,7 +31,7 @@ fn can_coalesce_text_nodes(boxes: &[Box], left_i: uint, right_i: uint) -> bool {
/// A stack-allocated object for scanning an inline flow into `TextRun`-containing `TextBox`es.
pub struct TextRunScanner {
- pub clump: Range,
+ pub clump: Range<uint>,
}
impl TextRunScanner {
@@ -210,7 +210,7 @@ impl TextRunScanner {
// Next, concatenate all of the transformed strings together, saving the new
// character indices.
let mut run_str: ~str = "".to_owned();
- let mut new_ranges: Vec<Range> = vec!();
+ let mut new_ranges: Vec<Range<uint>> = vec!();
let mut char_total = 0;
for i in range(0, transformed_strs.len()) {
let added_chars = transformed_strs.get(i).char_len();