Convert cursor rect to device coordinates on Win32#24672
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
|
The code looks great, but can you add some tests to avoid regression? |
|
Added a couple tests. Wondering if we should wrap the win32 DPI getting calls up in a class/proc table to make it easier to mock in cases like this. Since we've already got them off in a separate utils translation unit, I might do that in a followup PR. |
The handlers for the TextInput.setMarkedTextRect and TextInput.setEditableSizeAndTransform in the win32 embedding deal in Flutter root view co-ordinates. These need to be converted to window co-ordinates before being passed to the TextInputManager, which deals in Win32 window co-ordinates. This fixes a bug wherein the IME candidates window for CJK input was incorrectly positioned at display scales other than 100% in the OS settings. Fixes: flutter/flutter#76902
…ive#24672) The handlers for the TextInput.setMarkedTextRect and TextInput.setEditableSizeAndTransform in the win32 embedding deal in Flutter root view co-ordinates. These need to be converted to window co-ordinates before being passed to the TextInputManager, which deals in Win32 window co-ordinates. This fixes a bug wherein the IME candidates window for CJK input was incorrectly positioned at display scales other than 100% in the OS settings. Fixes: flutter/flutter#76902
…ive#24672) The handlers for the TextInput.setMarkedTextRect and TextInput.setEditableSizeAndTransform in the win32 embedding deal in Flutter root view co-ordinates. These need to be converted to window co-ordinates before being passed to the TextInputManager, which deals in Win32 window co-ordinates. This fixes a bug wherein the IME candidates window for CJK input was incorrectly positioned at display scales other than 100% in the OS settings. Fixes: flutter/flutter#76902
The handlers for the TextInput.setMarkedTextRect and
TextInput.setEditableSizeAndTransform in the win32 embedding deal in
Flutter root view co-ordinates. These need to be converted to window
co-ordinates before being passed to the TextInputManager, which deals in
Win32 window co-ordinates.
This fixes a bug wherein the IME candidates window for CJK input was
incorrectly positioned at display scales other than 100% in the OS
settings.
Fixes: flutter/flutter#76902
Pre-launch Checklist
writing and running engine tests.
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.