mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update stylo code to work on nightly
This commit is contained in:
parent
a59a8f8355
commit
3947e2f698
3 changed files with 17 additions and 5 deletions
|
@ -387,7 +387,12 @@ impl<'a> Iterator for GeckoChildrenIterator<'a> {
|
|||
curr
|
||||
},
|
||||
GeckoChildrenIterator::GeckoIterator(ref mut it) => unsafe {
|
||||
Gecko_GetNextStyleChild(it).map(GeckoNode)
|
||||
// We do this unsafe lengthening of the lifetime here because
|
||||
// structs::StyleChildrenIterator is actually StyleChildrenIterator<'a>,
|
||||
// however we can't express this easily with bindgen, and it would
|
||||
// introduce functions with two input lifetimes into bindgen,
|
||||
// which would be out of scope for elision.
|
||||
Gecko_GetNextStyleChild(&mut * (it as *mut _)).map(GeckoNode)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue