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
Родитель 97cf4f1a78
Коммит a04148cf34
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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.