Bug 1231329 - run ConvertToUnscaledDevPixels if *aPresContext is valid. r=roc

This commit is contained in:
Bogdan Postelnicu 2015-12-11 03:16:00 +01:00
parent 1d50668a6b
commit 40ebcaa74b

View File

@ -555,7 +555,7 @@ nsBaseDragService::DrawDrag(nsIDOMNode* aDOMNode,
if (aRegion) {
// the region's coordinates are relative to the root frame
nsIFrame* rootFrame = presShell->GetRootFrame();
if (rootFrame && *aPresContext) {
if (rootFrame) {
nsIntRect dragRect;
aRegion->GetBoundingBox(&dragRect.x, &dragRect.y, &dragRect.width, &dragRect.height);
dragRect = ToAppUnits(dragRect, nsPresContext::AppUnitsPerCSSPixel()).