summaryrefslogtreecommitdiffstats
path: root/layout/printing
diff options
context:
space:
mode:
authorBob Owen <bobowencode@gmail.com>2018-01-12 10:17:36 +0000
committerwolfbeast <mcwerewolf@gmail.com>2018-03-14 10:54:03 +0100
commitf13ea6af5be4ca04ec113f8c852d59d90993baa2 (patch)
tree69b244c92108a3f6a431df11ddc64200df72989e /layout/printing
parentc7816fd9ee2ad7701bcd4d4a1fa054111efd96d6 (diff)
downloadUXP-f13ea6af5be4ca04ec113f8c852d59d90993baa2.tar
UXP-f13ea6af5be4ca04ec113f8c852d59d90993baa2.tar.gz
UXP-f13ea6af5be4ca04ec113f8c852d59d90993baa2.tar.lz
UXP-f13ea6af5be4ca04ec113f8c852d59d90993baa2.tar.xz
UXP-f13ea6af5be4ca04ec113f8c852d59d90993baa2.zip
Bug 1426087 - Decrement nsDocumentViewer::mDestroyRefCount in a separate function. r=jwatt, a=RyanVM
--HG-- extra : source : 86d41b5efe074f6988085082df9ef537eee0813a extra : intermediate-source : ea406489f93a0a8fa05ff568acdff07ce6b118c4
Diffstat (limited to 'layout/printing')
-rw-r--r--layout/printing/nsPagePrintTimer.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/layout/printing/nsPagePrintTimer.cpp b/layout/printing/nsPagePrintTimer.cpp
index b56569a9a..164b0469a 100644
--- a/layout/printing/nsPagePrintTimer.cpp
+++ b/layout/printing/nsPagePrintTimer.cpp
@@ -14,14 +14,8 @@ NS_IMPL_ISUPPORTS_INHERITED(nsPagePrintTimer, mozilla::Runnable, nsITimerCallbac
nsPagePrintTimer::~nsPagePrintTimer()
{
- // "Destroy" the document viewer; this normally doesn't actually
- // destroy it because of the IncrementDestroyRefCount call below
- // XXX This is messy; the document viewer should use a single approach
- // to keep itself alive during printing
- nsCOMPtr<nsIContentViewer> cv(do_QueryInterface(mDocViewerPrint));
- if (cv) {
- cv->Destroy();
- }
+ // This matches the IncrementDestroyRefCount call in the constructor.
+ mDocViewerPrint->DecrementDestroyRefCount();
}
nsresult