bug 799900 - [HiDPI] account for device-pixel scaling for IME window position. r=smichaud

This commit is contained in:
Jonathan Kew 2012-10-10 19:09:29 +01:00
parent daebf6cedf
commit b1350b9c25

View File

@ -2594,7 +2594,7 @@ IMEInputHandler::FirstRectForCharacterRange(NSRange& aRange)
if (!rootWindow || !rootView) {
return rect;
}
nsCocoaUtils::GeckoRectToNSRect(r, rect);
rect = nsCocoaUtils::DevPixelsToCocoaPoints(r, mWidget->GetDefaultScale());
rect = [rootView convertRect:rect toView:nil];
rect.origin = [rootWindow convertBaseToScreen:rect.origin];