From 33f58425d7e280cfab308120500d2e7752f5ddbf Mon Sep 17 00:00:00 2001 From: Peter Van der Beken Date: Mon, 7 Nov 2011 13:58:08 +0100 Subject: [PATCH] Bug 699799 - Don't AddRef/Release every uncollectable document before cycle collection. r=jst. --HG-- extra : rebase_source : 4436eaaded310ff4a3927e71843f7de664b50f9d --- content/base/src/nsCCUncollectableMarker.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/content/base/src/nsCCUncollectableMarker.cpp b/content/base/src/nsCCUncollectableMarker.cpp index 15a83bc1234..4aa5de8874e 100644 --- a/content/base/src/nsCCUncollectableMarker.cpp +++ b/content/base/src/nsCCUncollectableMarker.cpp @@ -94,9 +94,7 @@ MarkContentViewer(nsIContentViewer* aViewer) return; } - nsCOMPtr domDoc; - aViewer->GetDOMDocument(getter_AddRefs(domDoc)); - nsCOMPtr doc = do_QueryInterface(domDoc); + nsIDocument *doc = aViewer->GetDocument(); if (doc) { doc->MarkUncollectableForCCGeneration(nsCCUncollectableMarker::sGeneration); }