Removed a bunch of bogus code that (a) did very little (b) doesn't work for image documents

This commit is contained in:
kipp@netscape.com
1998-09-11 04:17:07 +00:00
parent 6d3b4ed340
commit 4c60be82ec
2 changed files with 2 additions and 26 deletions

View File

@@ -377,19 +377,7 @@ nsPresContext::GetImageGroup(nsIImageGroup*& aGroupResult)
}
// Initialize the image group
nsIWidget* window;
nsIFrame* rootFrame;
rootFrame = mShell->GetRootFrame();
rootFrame->GetWindow(window);
nsIRenderingContext* drawCtx = window->GetRenderingContext();
float app2dev;
mDeviceContext->GetAppUnitsToDevUnits(app2dev);
drawCtx->Scale(app2dev, app2dev);
NS_RELEASE(drawCtx);
nsIDeviceContext* deviceCtx = window->GetDeviceContext();
rv = mImageGroup->Init(deviceCtx);
NS_RELEASE(deviceCtx);
NS_RELEASE(window);
rv = mImageGroup->Init(mDeviceContext);
if (NS_OK != rv) {
return rv;
}