mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +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 {
|
||||
NodeOrText::AppendNode(n) => n.root(),
|
||||
NodeOrText::AppendText(t) => {
|
||||
let doc = self.document.root();
|
||||
let text = Text::new(t.into(), &doc);
|
||||
let text = Text::new(t.into(), &self.document);
|
||||
NodeCast::from_root(text)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue