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
This commit is contained in:
@@ -853,19 +853,8 @@ DocumentViewerImpl::InitInternal(nsIWidget* aParentWidget,
|
||||
nsCOMPtr<nsIDeviceContext> devctx;
|
||||
nsCOMPtr<nsIDeviceContextSpec> devspec;
|
||||
nsCOMPtr<nsIDeviceContextSpecFactory> 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);
|
||||
|
||||
Reference in New Issue
Block a user