Bug 699799 - Don't AddRef/Release every uncollectable document before cycle collection. r=jst.

--HG--
extra : rebase_source : 4436eaaded310ff4a3927e71843f7de664b50f9d
This commit is contained in:
Peter Van der Beken 2011-11-07 13:58:08 +01:00
parent 38efb60d36
commit 6305eec81a

View File

@ -94,9 +94,7 @@ MarkContentViewer(nsIContentViewer* aViewer)
return;
}
nsCOMPtr<nsIDOMDocument> domDoc;
aViewer->GetDOMDocument(getter_AddRefs(domDoc));
nsCOMPtr<nsIDocument> doc = do_QueryInterface(domDoc);
nsIDocument *doc = aViewer->GetDocument();
if (doc) {
doc->MarkUncollectableForCCGeneration(nsCCUncollectableMarker::sGeneration);
}