mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +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
|
@ -68,6 +68,7 @@ use serialize::{Encoder, Encodable};
|
|||
|
||||
/// An HTML node.
|
||||
#[deriving(Encodable)]
|
||||
#[must_root]
|
||||
pub struct Node {
|
||||
/// The JavaScript reflector for this node.
|
||||
pub eventtarget: EventTarget,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue