Bug 382756: ASSERTION: When exactly is this supposed to be non-zero?. r+sr=roc.

This commit is contained in:
sharparrow1@yahoo.com 2007-06-29 18:41:10 -07:00
parent 271e5c520d
commit a3ab1ea4f7

View File

@ -483,9 +483,8 @@ void nsViewManager::Refresh(nsView *aView, nsIRenderingContext *aContext,
ctx->Translate(gfxPoint(gfxFloat(vtowoffset.x) / p2a, ctx->Translate(gfxPoint(gfxFloat(vtowoffset.x) / p2a,
gfxFloat(vtowoffset.y) / p2a)); gfxFloat(vtowoffset.y) / p2a));
NS_ASSERTION(!viewRect.x && !viewRect.y, "When exactly is this supposed to be non-zero?"); ctx->Translate(gfxPoint(-gfxFloat(viewRect.x) / p2a,
ctx->Translate(gfxPoint(gfxFloat(viewRect.x) / p2a, -gfxFloat(viewRect.y) / p2a));
gfxFloat(viewRect.y) / p2a));
nsRegion opaqueRegion; nsRegion opaqueRegion;
AddCoveringWidgetsToOpaqueRegion(opaqueRegion, mContext, aView); AddCoveringWidgetsToOpaqueRegion(opaqueRegion, mContext, aView);