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);