зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
97cf4f1a78
Коммит
a04148cf34
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче