mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Make enum/fn part of unrooted_must_root handle type parameters
This commit is contained in:
parent
fda3eb6327
commit
521d8bc32e
3 changed files with 19 additions and 27 deletions
|
@ -81,6 +81,7 @@ impl<T: Reflectable> JS<T> {
|
|||
|
||||
/// An unrooted reference to a DOM object for use in layout. `Layout*Helpers`
|
||||
/// traits must be implemented on this.
|
||||
#[allow_unrooted_interior]
|
||||
pub struct LayoutJS<T> {
|
||||
ptr: NonZero<*const T>
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue