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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user