mirror of
https://github.com/servo/servo.git
synced 2025-08-14 09:55:35 +01:00
Add any_important and any_normal methods to PropertyDeclarationBlock
This commit is contained in:
parent
7ef4930472
commit
95033e1c0d
3 changed files with 25 additions and 5 deletions
|
@ -473,7 +473,7 @@ impl<'le> TElement for GeckoElement<'le> {
|
|||
None
|
||||
} else {
|
||||
let opt_ptr = GeckoDeclarationBlock::with(declarations, |declarations| {
|
||||
// Use a raw poointer to extend the lifetime
|
||||
// Use a raw pointer to extend the lifetime
|
||||
declarations.declarations.as_ref().map(|r| r as *const Arc<_>)
|
||||
});
|
||||
opt_ptr.map(|ptr| unsafe { &*ptr })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue