Replace range::Range with std::ops::Range in script

This commit is contained in:
Matt Brubeck 2016-04-28 14:52:02 -07:00
parent 659305fe0a
commit c4872d9544
9 changed files with 14 additions and 23 deletions

View file

@ -1087,8 +1087,8 @@ impl<'ln> ThreadSafeLayoutNode for ServoThreadSafeLayoutNode<'ln> {
} else {
return None;
};
selection.map(|range| Range::new(ByteIndex(range.begin() as isize),
ByteIndex(range.length() as isize)))
selection.map(|range| Range::new(ByteIndex(range.start as isize),
ByteIndex(range.len() as isize)))
}
fn image_url(&self) -> Option<Url> {