Remove unused variable/parameter in view code. b=371392 r+sr=roc

This commit is contained in:
dbaron@dbaron.org 2007-05-17 23:02:00 -07:00
parent b426f797d9
commit d4ac9c2be8
2 changed files with 3 additions and 9 deletions

View File

@ -459,7 +459,6 @@ void nsViewManager::Refresh(nsView *aView, nsIRenderingContext *aContext,
SetPainting(PR_TRUE);
nsCOMPtr<nsIRenderingContext> localcx;
nsIDrawingSurface* ds = nsnull;
if (nsnull == aContext)
{
@ -491,7 +490,7 @@ void nsViewManager::Refresh(nsView *aView, nsIRenderingContext *aContext,
AddCoveringWidgetsToOpaqueRegion(opaqueRegion, mContext, aView);
damageRegion.Sub(damageRegion, opaqueRegion);
RenderViews(aView, *localcx, damageRegion, ds);
RenderViews(aView, *localcx, damageRegion);
ctx->Restore();
@ -591,13 +590,8 @@ void nsViewManager::AddCoveringWidgetsToOpaqueRegion(nsRegion &aRgn, nsIDeviceCo
}
}
/*
aRCSurface is the drawing surface being used to double-buffer aRC, or null
if no double-buffering is happening. We pass this in here so that we can
blend directly into the double-buffer offscreen memory.
*/
void nsViewManager::RenderViews(nsView *aView, nsIRenderingContext& aRC,
const nsRegion& aRegion, nsIDrawingSurface* aRCSurface)
const nsRegion& aRegion)
{
if (mObserver) {
nsView* displayRoot = GetDisplayRootFor(aView);

View File

@ -274,7 +274,7 @@ private:
*/
void DefaultRefresh(nsView* aView, nsIRenderingContext *aContext, const nsRect* aRect);
void RenderViews(nsView *aRootView, nsIRenderingContext& aRC,
const nsRegion& aRegion, nsIDrawingSurface* aRCSurface);
const nsRegion& aRegion);
void InvalidateRectDifference(nsView *aView, const nsRect& aRect, const nsRect& aCutOut, PRUint32 aUpdateFlags);
void InvalidateHorizontalBandDifference(nsView *aView, const nsRect& aRect, const nsRect& aCutOut,