mirror of
https://github.com/servo/servo.git
synced 2025-06-22 16:18:59 +01:00
Use mutable reference for Gecko_GetNextStyleChild.
This commit is contained in:
parent
fe78c346a3
commit
3ade2b6de3
2 changed files with 3 additions and 3 deletions
|
@ -438,8 +438,8 @@ impl<'a> Iterator for GeckoChildrenIterator<'a> {
|
||||||
*self = GeckoChildrenIterator::Current(next);
|
*self = GeckoChildrenIterator::Current(next);
|
||||||
curr
|
curr
|
||||||
},
|
},
|
||||||
GeckoChildrenIterator::GeckoIterator(ref it) => unsafe {
|
GeckoChildrenIterator::GeckoIterator(ref mut it) => unsafe {
|
||||||
Gecko_GetNextStyleChild(&it).map(GeckoNode)
|
Gecko_GetNextStyleChild(it).map(GeckoNode)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -242,7 +242,7 @@ extern "C" {
|
||||||
pub fn Gecko_DropStyleChildrenIterator(it: StyleChildrenIteratorOwned);
|
pub fn Gecko_DropStyleChildrenIterator(it: StyleChildrenIteratorOwned);
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "C" {
|
||||||
pub fn Gecko_GetNextStyleChild(it: StyleChildrenIteratorBorrowed)
|
pub fn Gecko_GetNextStyleChild(it: StyleChildrenIteratorBorrowedMut)
|
||||||
-> RawGeckoNodeBorrowedOrNull;
|
-> RawGeckoNodeBorrowedOrNull;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue