diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2015-10-17 16:00:41 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2015-10-19 09:37:06 +0200 |
commit | 7c47a6b78e615eaf4d896513269bb5d318396c14 (patch) | |
tree | bcda62b441ab3971b820845e2d2d8a2e548a72d3 /components/script/dom/servohtmlparser.rs | |
parent | b0d1ccdf5f174ca893ffaba139e2207fdaece020 (diff) | |
download | servo-7c47a6b78e615eaf4d896513269bb5d318396c14.tar.gz servo-7c47a6b78e615eaf4d896513269bb5d318396c14.zip |
Do not root Sink::document
Diffstat (limited to 'components/script/dom/servohtmlparser.rs')
-rw-r--r-- | components/script/dom/servohtmlparser.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/servohtmlparser.rs b/components/script/dom/servohtmlparser.rs index 6d00e702180..e527a090d13 100644 --- a/components/script/dom/servohtmlparser.rs +++ b/components/script/dom/servohtmlparser.rs @@ -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) } } |