mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
merge from master
This commit is contained in:
commit
6e774ea6eb
1044 changed files with 46059 additions and 1506 deletions
|
@ -42,7 +42,7 @@ impl DOMRectListMethods for DOMRectList {
|
|||
fn Item(&self, index: u32) -> Option<Root<DOMRect>> {
|
||||
let rects = &self.rects;
|
||||
if index < rects.len() as u32 {
|
||||
Some(rects[index as usize].root())
|
||||
Some(Root::from_ref(&*rects[index as usize]))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue