mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
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:
parent
445c93771d
commit
61d5e1223f
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user