From 9685925ebc6e1dfec204ee7dac7f565c8fe326db Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Fri, 11 Sep 1998 04:17:07 +0000 Subject: [PATCH] Removed a bunch of bogus code that (a) did very little (b) doesn't work for image documents git-svn-id: svn://10.0.0.236/trunk@9815 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsPresContext.cpp | 14 +------------- mozilla/layout/base/src/nsPresContext.cpp | 14 +------------- 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/mozilla/layout/base/nsPresContext.cpp b/mozilla/layout/base/nsPresContext.cpp index a0c417c25b9..eed568212b2 100644 --- a/mozilla/layout/base/nsPresContext.cpp +++ b/mozilla/layout/base/nsPresContext.cpp @@ -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; } diff --git a/mozilla/layout/base/src/nsPresContext.cpp b/mozilla/layout/base/src/nsPresContext.cpp index a0c417c25b9..eed568212b2 100644 --- a/mozilla/layout/base/src/nsPresContext.cpp +++ b/mozilla/layout/base/src/nsPresContext.cpp @@ -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; }