mirror of
https://github.com/servo/servo.git
synced 2025-07-24 07:40:27 +01:00
Remove Temporary::new()
Temporary::from_rooted() now takes an Assignable value.
This commit is contained in:
parent
2770886196
commit
1a30925cad
19 changed files with 45 additions and 48 deletions
|
@ -63,7 +63,7 @@ trait SinkHelpers {
|
|||
impl SinkHelpers for servohtmlparser::Sink {
|
||||
fn get_or_create(&self, child: NodeOrText<JS<Node>>) -> Temporary<Node> {
|
||||
match child {
|
||||
AppendNode(n) => Temporary::new(n),
|
||||
AppendNode(n) => Temporary::from_rooted(n),
|
||||
AppendText(t) => {
|
||||
let doc = self.document.root();
|
||||
let text = Text::new(t, doc.r());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue