Add any_important and any_normal methods to PropertyDeclarationBlock

This commit is contained in:
Simon Sapin 2016-08-31 13:41:38 +02:00
parent 7ef4930472
commit 95033e1c0d
3 changed files with 25 additions and 5 deletions

View file

@ -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 })