From 5f4bf18a2e7c8a280d95feb7a4cf4964d469f3cc Mon Sep 17 00:00:00 2001 From: "atremon%elansoftware.com" Date: Mon, 10 Apr 2006 13:48:13 +0000 Subject: [PATCH] Bug 332701 remove timeless' comment (patch for rev 1.477 sr=roc) git-svn-id: svn://10.0.0.236/trunk@193991 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsDocumentViewer.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/mozilla/layout/base/nsDocumentViewer.cpp b/mozilla/layout/base/nsDocumentViewer.cpp index 35b8d134e5a..81f09f340cc 100644 --- a/mozilla/layout/base/nsDocumentViewer.cpp +++ b/mozilla/layout/base/nsDocumentViewer.cpp @@ -853,19 +853,8 @@ DocumentViewerImpl::InitInternal(nsIWidget* aParentWidget, nsCOMPtr devctx; nsCOMPtr devspec; nsCOMPtr factory = do_CreateInstance(kDeviceContextSpecFactoryCID); - // XXX CRASHES ON OOM. YUM. WOULD SOMEONE PLEASE FIX ME. - // PERHAPS SOMEONE SHOULD HAVE REVIEWED THIS CODE. - // XXX I have no idea how critical this code is, so i'm not fixing it. - // In fact I'm just adding a line that makes this block - // get compiled *less* often. // mWindow has been initialized by preceding call to MakeWindow factory->CreateDeviceContextSpec(mWindow, mPresContext->GetPrintSettings(), *getter_AddRefs(devspec), PR_FALSE); - // XXX CRASHES ON OOM under at least - // nsPrintJobFactoryPS::CreatePrintJob. WOULD SOMEONE PLEASE FIX ME. - // PERHAPS SOMEONE SHOULD HAVE REVIEWED THIS CODE. - // XXX I have no idea how critical this code is, so i'm not fixing it. - // In fact I'm just adding a line that makes this block - // get compiled *less* often. mDeviceContext->GetDeviceContextFor(devspec, *getter_AddRefs(devctx)); mDeviceContext->SetAltDevice(devctx); mDeviceContext->SetUseAltDC(kUseAltDCFor_SURFACE_DIM, PR_TRUE);