mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Remove unused variable/parameter in view code. b=371392 r+sr=roc
This commit is contained in:
parent
b426f797d9
commit
d4ac9c2be8
@ -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);
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user