mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
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
This commit is contained in:
parent
6260d52248
commit
8c1a626840
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user