mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Use #[must_root] for HTMLElements
This commit is contained in:
parent
30014c3919
commit
f5087e1490
70 changed files with 138 additions and 5 deletions
|
@ -36,8 +36,8 @@ impl Text {
|
|||
}
|
||||
|
||||
pub fn new(text: DOMString, document: &JSRef<Document>) -> Temporary<Text> {
|
||||
let node = Text::new_inherited(text, document);
|
||||
Node::reflect_node(box node, document, TextBinding::Wrap)
|
||||
Node::reflect_node(box Text::new_inherited(text, document),
|
||||
document, TextBinding::Wrap)
|
||||
}
|
||||
|
||||
pub fn Constructor(global: &GlobalRef, text: DOMString) -> Fallible<Temporary<Text>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue