Bug 570467. For the clip region of drag feedback, if we were given an null clip region don't pass an empty clip region, pass null. r=mats

This commit is contained in:
Timothy Nikkel 2010-06-08 14:18:10 -05:00
parent 445c93771d
commit 61d5e1223f

View File

@ -530,8 +530,9 @@ nsBaseDragService::DrawDrag(nsIDOMNode* aDOMNode,
}
nsIntPoint pnt(aScreenDragRect->x, aScreenDragRect->y);
nsRefPtr<gfxASurface> surface = presShell->RenderNode(dragNode, &clipRegion,
pnt, aScreenDragRect);
nsRefPtr<gfxASurface> surface =
presShell->RenderNode(dragNode, aRegion ? &clipRegion : nsnull,
pnt, aScreenDragRect);
// if an image was specified, reposition the drag rectangle to
// the supplied offset in mImageX and mImageY.