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
|
@ -19,6 +19,7 @@ use dom::nodelist::NodeList;
|
|||
use servo_util::str::DOMString;
|
||||
|
||||
#[deriving(Encodable)]
|
||||
#[must_root]
|
||||
pub struct DocumentFragment {
|
||||
pub node: Node,
|
||||
}
|
||||
|
@ -38,8 +39,8 @@ impl DocumentFragment {
|
|||
}
|
||||
|
||||
pub fn new(document: &JSRef<Document>) -> Temporary<DocumentFragment> {
|
||||
let node = DocumentFragment::new_inherited(document);
|
||||
Node::reflect_node(box node, document, DocumentFragmentBinding::Wrap)
|
||||
Node::reflect_node(box DocumentFragment::new_inherited(document),
|
||||
document, DocumentFragmentBinding::Wrap)
|
||||
}
|
||||
|
||||
pub fn Constructor(global: &GlobalRef) -> Fallible<Temporary<DocumentFragment>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue