Bug 725768 - BBP for ObjectHolders, additional patch, mccr8

This commit is contained in:
Olli Pettay 2012-02-11 03:21:26 +02:00
parent ea2d04cbc4
commit cb88710c94

View File

@ -4704,12 +4704,15 @@ nsGenericElement::CanSkip(nsINode* aNode)
}
}
if (!foundBlack) {
if (!currentDoc || !foundBlack) {
if (!gPurpleRoots) {
gPurpleRoots = new nsAutoTArray<nsINode*, 1020>();
}
root->SetIsPurpleRoot(true);
gPurpleRoots->AppendElement(root);
}
if (!foundBlack) {
return false;
}