mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Replace range::Range with std::ops::Range in script
This commit is contained in:
parent
659305fe0a
commit
c4872d9544
9 changed files with 14 additions and 23 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue