mirror of
https://github.com/servo/servo.git
synced 2025-06-22 08:08: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);
|
||||
curr
|
||||
},
|
||||
GeckoChildrenIterator::GeckoIterator(ref it) => unsafe {
|
||||
Gecko_GetNextStyleChild(&it).map(GeckoNode)
|
||||
GeckoChildrenIterator::GeckoIterator(ref mut it) => unsafe {
|
||||
Gecko_GetNextStyleChild(it).map(GeckoNode)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -242,7 +242,7 @@ extern "C" {
|
|||
pub fn Gecko_DropStyleChildrenIterator(it: StyleChildrenIteratorOwned);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_GetNextStyleChild(it: StyleChildrenIteratorBorrowed)
|
||||
pub fn Gecko_GetNextStyleChild(it: StyleChildrenIteratorBorrowedMut)
|
||||
-> RawGeckoNodeBorrowedOrNull;
|
||||
}
|
||||
extern "C" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue