mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-30 12:27:29 +09:00
[Parser] Move setting context to null to the correct location.
This commit is contained in:
parent
e58f92ba6e
commit
140bd4d265
2 changed files with 4 additions and 4 deletions
|
|
@ -717,8 +717,6 @@ public abstract class TreeBuilder<T> implements TokenHandler,
|
||||||
tokenizer.setState(Tokenizer.DATA);
|
tokenizer.setState(Tokenizer.DATA);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
contextName = null;
|
|
||||||
contextNode = null;
|
|
||||||
} else {
|
} else {
|
||||||
mode = INITIAL;
|
mode = INITIAL;
|
||||||
// If we are viewing XML source, put a foreign element permanently
|
// If we are viewing XML source, put a foreign element permanently
|
||||||
|
|
@ -1627,6 +1625,8 @@ public abstract class TreeBuilder<T> implements TokenHandler,
|
||||||
public final void endTokenization() throws SAXException {
|
public final void endTokenization() throws SAXException {
|
||||||
formPointer = null;
|
formPointer = null;
|
||||||
headPointer = null;
|
headPointer = null;
|
||||||
|
contextName = null;
|
||||||
|
contextNode = null;
|
||||||
deepTreeSurrogateParent = null;
|
deepTreeSurrogateParent = null;
|
||||||
templateModeStack = null;
|
templateModeStack = null;
|
||||||
if (stack != null) {
|
if (stack != null) {
|
||||||
|
|
|
||||||
|
|
@ -141,8 +141,6 @@ nsHtml5TreeBuilder::startTokenization(nsHtml5Tokenizer* self)
|
||||||
tokenizer->setState(nsHtml5Tokenizer::DATA);
|
tokenizer->setState(nsHtml5Tokenizer::DATA);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
contextName = nullptr;
|
|
||||||
contextNode = nullptr;
|
|
||||||
} else {
|
} else {
|
||||||
mode = INITIAL;
|
mode = INITIAL;
|
||||||
if (tokenizer->isViewingXmlSource()) {
|
if (tokenizer->isViewingXmlSource()) {
|
||||||
|
|
@ -578,6 +576,8 @@ nsHtml5TreeBuilder::endTokenization()
|
||||||
{
|
{
|
||||||
formPointer = nullptr;
|
formPointer = nullptr;
|
||||||
headPointer = nullptr;
|
headPointer = nullptr;
|
||||||
|
contextName = nullptr;
|
||||||
|
contextNode = nullptr;
|
||||||
deepTreeSurrogateParent = nullptr;
|
deepTreeSurrogateParent = nullptr;
|
||||||
templateModeStack = nullptr;
|
templateModeStack = nullptr;
|
||||||
if (stack) {
|
if (stack) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue