зеркало из https://github.com/mozilla/gecko-dev.git
Bug 899430. Correct incorrect use GetDefaultScale in TextInputHandler to BackingScaleFactor. r=jfkthame
We are converting between cocoa points and dev pixels, cocoa points do not know about our prefs but GetDefaultScale takes into account our prefs, which is wrong.
This commit is contained in:
Родитель
d5417217be
Коммит
17ff349e2b
|
@ -3073,7 +3073,7 @@ IMEInputHandler::FirstRectForCharacterRange(NSRange& aRange,
|
|||
if (!rootWindow || !rootView) {
|
||||
return rect;
|
||||
}
|
||||
rect = nsCocoaUtils::DevPixelsToCocoaPoints(r, mWidget->GetDefaultScale());
|
||||
rect = nsCocoaUtils::DevPixelsToCocoaPoints(r, mWidget->BackingScaleFactor());
|
||||
rect = [rootView convertRect:rect toView:nil];
|
||||
rect.origin = [rootWindow convertBaseToScreen:rect.origin];
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче