зеркало из https://github.com/mozilla/gecko-dev.git
Bug 612568 - Drop nsIContent handles when finished parsing a fragment. r=Olli.Pettay, a=jst.
This commit is contained in:
Родитель
4531f71b9a
Коммит
42f7028cc7
|
@ -498,6 +498,7 @@ nsHtml5Parser::ParseHtml5Fragment(const nsAString& aSourceBuffer,
|
|||
mTokenizer->end();
|
||||
mExecutor->DropParserAndPerfHint();
|
||||
mExecutor->DropHeldElements();
|
||||
mTreeBuilder->DropHandles();
|
||||
mAtomTable.Clear();
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -667,6 +667,13 @@ nsHtml5TreeBuilder::IsDiscretionaryFlushSafe()
|
|||
stack[currentPtr]->fosterParenting);
|
||||
}
|
||||
|
||||
void
|
||||
nsHtml5TreeBuilder::DropHandles()
|
||||
{
|
||||
mOldHandles.Clear();
|
||||
mHandlesUsed = 0;
|
||||
}
|
||||
|
||||
// DocumentModeHandler
|
||||
void
|
||||
nsHtml5TreeBuilder::documentMode(nsHtml5DocumentMode m)
|
||||
|
|
|
@ -95,3 +95,5 @@
|
|||
void NeedsCharsetSwitchTo(const nsACString& aEncoding);
|
||||
|
||||
void AddSnapshotToScript(nsAHtml5TreeBuilderState* aSnapshot, PRInt32 aLine);
|
||||
|
||||
void DropHandles();
|
||||
|
|
Загрузка…
Ссылка в новой задаче