Bug 941858 - Do not scale down elements passed to setDragImage. r=roc

This commit is contained in:
Alex Henrie
2015-07-11 10:15:19 -06:00
parent 79d8766296
commit 043f3878d9
4 changed files with 40 additions and 22 deletions

View File

@@ -558,7 +558,8 @@ nsBaseDragService::DrawDrag(nsIDOMNode* aDOMNode,
// draw the image for selections
if (mSelection) {
nsIntPoint pnt(aScreenDragRect->x, aScreenDragRect->y);
*aSurface = presShell->RenderSelection(mSelection, pnt, aScreenDragRect);
*aSurface = presShell->RenderSelection(mSelection, pnt, aScreenDragRect,
mImage ? 0 : nsIPresShell::RENDER_AUTO_SCALE);
return NS_OK;
}
@@ -600,7 +601,8 @@ nsBaseDragService::DrawDrag(nsIDOMNode* aDOMNode,
nsIntPoint pnt(aScreenDragRect->x, aScreenDragRect->y);
*aSurface = presShell->RenderNode(dragNode, aRegion ? &clipRegion : nullptr,
pnt, aScreenDragRect);
pnt, aScreenDragRect,
mImage ? 0 : nsIPresShell::RENDER_AUTO_SCALE);
}
// if an image was specified, reposition the drag rectangle to