Bug 981651 - Don't scale the touch radius up by the resolution amount since it is usually canceled by layer transforms. r=roc

This commit is contained in:
Kartikaya Gupta 2014-03-11 11:14:51 -04:00
parent d8764d7f99
commit 88038d24ec

View File

@ -224,8 +224,7 @@ AppUnitsFromMM(nsIFrame* aFrame, uint32_t aMM, bool aVertical)
nsPresContext* pc = aFrame->PresContext();
nsIPresShell* presShell = pc->PresShell();
float result = float(aMM) *
(pc->DeviceContext()->AppUnitsPerPhysicalInch() / MM_PER_INCH_FLOAT) *
(aVertical ? presShell->GetYResolution() : presShell->GetXResolution());
(pc->DeviceContext()->AppUnitsPerPhysicalInch() / MM_PER_INCH_FLOAT);
return NSToCoordRound(result);
}