Bug 818976 - Part 1: Add supplement code and new tree op to support generated code in HTML5 parser. r=hsivonen

This commit is contained in:
William Chen
2013-03-26 00:15:23 -07:00
parent 53acfb50a8
commit 43d16f6276
5 changed files with 28 additions and 0 deletions

View File

@@ -753,6 +753,16 @@ nsHtml5TreeBuilder::documentMode(nsHtml5DocumentMode m)
treeOp->Init(m);
}
nsIContent**
nsHtml5TreeBuilder::getDocumentFragmentForTemplate(nsIContent** aTemplate)
{
nsHtml5TreeOperation* treeOp = mOpQueue.AppendElement();
NS_ASSERTION(treeOp, "Tree op allocation failed.");
nsIContent** fragHandle = AllocateContentHandle();
treeOp->Init(eTreeOpGetDocumentFragmentForTemplate, aTemplate, fragHandle);
return fragHandle;
}
// Error reporting
void