mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 12:55:46 +00:00
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:
parent
d8764d7f99
commit
88038d24ec
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user