mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Make Reflector #[must_root], propagate to non-HTMLElements
This commit is contained in:
parent
f0b8391762
commit
30014c3919
40 changed files with 53 additions and 12 deletions
|
@ -455,8 +455,9 @@ pub fn reflect_dom_object<T: Reflectable>
|
|||
}
|
||||
|
||||
/// A struct to store a reference to the reflector of a DOM object.
|
||||
#[allow(raw_pointer_deriving)]
|
||||
#[allow(raw_pointer_deriving, unrooted_must_root)]
|
||||
#[deriving(PartialEq)]
|
||||
#[must_root]
|
||||
pub struct Reflector {
|
||||
object: Cell<*mut JSObject>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue