diff --git a/view/src/nsViewManager.cpp b/view/src/nsViewManager.cpp index c475798fb02..5e812a73c07 100644 --- a/view/src/nsViewManager.cpp +++ b/view/src/nsViewManager.cpp @@ -483,9 +483,8 @@ void nsViewManager::Refresh(nsView *aView, nsIRenderingContext *aContext, ctx->Translate(gfxPoint(gfxFloat(vtowoffset.x) / 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, - gfxFloat(viewRect.y) / p2a)); + ctx->Translate(gfxPoint(-gfxFloat(viewRect.x) / p2a, + -gfxFloat(viewRect.y) / p2a)); nsRegion opaqueRegion; AddCoveringWidgetsToOpaqueRegion(opaqueRegion, mContext, aView);