diff options
author | Henri Sivonen <hsivonen@hsivonen.fi> | 2020-02-14 13:24:59 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-02-15 13:23:03 +0100 |
commit | 32de0e3ccc2ec205e910ded6a748289a7a6feeea (patch) | |
tree | 52e5b2fd0d251ffd6b2d32db540ca1fd21cb81f2 | |
parent | ceb9d0ad92ac1fc0d5844310f7542e397cdd8f05 (diff) | |
download | uxp-32de0e3ccc2ec205e910ded6a748289a7a6feeea.tar.gz |
[Parser] Move setting context to null to the correct location.
-rw-r--r-- | parser/html/nsHtml5TreeBuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parser/html/nsHtml5TreeBuilder.cpp b/parser/html/nsHtml5TreeBuilder.cpp index a02626e474..b1225130af 100644 --- a/parser/html/nsHtml5TreeBuilder.cpp +++ b/parser/html/nsHtml5TreeBuilder.cpp @@ -141,8 +141,6 @@ nsHtml5TreeBuilder::startTokenization(nsHtml5Tokenizer* self) tokenizer->setState(NS_HTML5TOKENIZER_DATA); } } - contextName = nullptr; - contextNode = nullptr; } else { mode = NS_HTML5TREE_BUILDER_INITIAL; if (tokenizer->isViewingXmlSource()) { @@ -581,6 +579,8 @@ nsHtml5TreeBuilder::endTokenization() { formPointer = nullptr; headPointer = nullptr; + contextName = nullptr; + contextNode = nullptr; deepTreeSurrogateParent = nullptr; templateModeStack = nullptr; if (stack) { |