mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Do not root Sink::document
This commit is contained in:
parent
b0d1ccdf5f
commit
7c47a6b78e
1 changed files with 1 additions and 2 deletions
|
@ -48,8 +48,7 @@ impl Sink {
|
||||||
match child {
|
match child {
|
||||||
NodeOrText::AppendNode(n) => n.root(),
|
NodeOrText::AppendNode(n) => n.root(),
|
||||||
NodeOrText::AppendText(t) => {
|
NodeOrText::AppendText(t) => {
|
||||||
let doc = self.document.root();
|
let text = Text::new(t.into(), &self.document);
|
||||||
let text = Text::new(t.into(), &doc);
|
|
||||||
NodeCast::from_root(text)
|
NodeCast::from_root(text)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue