From 63adfad622dc045ac72eec10c5cb424418f73b8a Mon Sep 17 00:00:00 2001 From: "dbaron%dbaron.org" Date: Thu, 8 Jan 2004 21:06:19 +0000 Subject: [PATCH] Comply with the C++ standard's (silly?) rule that converting an rvalue to a const reference requires that the copy constructor be accessible. b=230118 r=bbaetz sr=roc --- view/src/nsViewManager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/view/src/nsViewManager.cpp b/view/src/nsViewManager.cpp index c2883d7e676..5b779b72dc2 100644 --- a/view/src/nsViewManager.cpp +++ b/view/src/nsViewManager.cpp @@ -2879,7 +2879,8 @@ PRBool nsViewManager::CanScrollWithBitBlt(nsView* aView) // code still does the right thing. Yay for the display list based // approach!) - OptimizeDisplayList(&displayList, nsRegion(r), finalTransparentRect, opaqueRegion, PR_TRUE); + nsRegion region(r); + OptimizeDisplayList(&displayList, region, finalTransparentRect, opaqueRegion, PR_TRUE); PRBool anyUnscrolledViews = PR_FALSE; PRBool anyUnblittableViews = PR_FALSE; @@ -3285,7 +3286,8 @@ NS_IMETHODIMP nsViewManager::Display(nsIView* aView, nscoord aX, nscoord aY, con // Paint the view. The clipping rect was set above set don't clip again. //aView->Paint(*localcx, trect, NS_VIEW_FLAG_CLIP_SET, result); - RenderViews(view, *localcx, nsRegion(trect), PR_FALSE); + nsRegion region(trect); + RenderViews(view, *localcx, region, PR_FALSE); NS_RELEASE(localcx);