commit | 76d783f0855810dd5a91da59831e0054828a1fdd | [log] [tgz] |
---|---|---|
author | Darren Shen <shend@chromium.org> | Wed Jun 23 04:27:32 2021 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jun 23 04:27:32 2021 |
tree | efc40c9d7e5eb65ad307ddb8445c64b9cdcd912e | |
parent | 6a666ba529bef837711b0c7f00a8647f42580c2c [diff] |
ime: Move UTF normalization code into IMEs. Unicode codepoints can be encoded in various normalization schemes. We currently normalize the output of our IMEs via NativeInputMethodEngine. However, normalization may affect the length and indices of the string. Therefore, if an IME calls a function with an unnormalized string and an index into that unnormalized string, the index may become invalid. Therefore, the IME must do all the normalization itself rather than NativeInputMethodEngine doing it. Otherwise, NativeInputMethodEngine will need to adjust indices and offsets after normalization. BUG=1194372 Change-Id: I2322e2883fb540419aa7a3dc4095364735bdb48b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2976480 Reviewed-by: Jing Wang <jiwan@chromium.org> Commit-Queue: Darren Shen <shend@chromium.org> Cr-Commit-Position: refs/heads/master@{#895011}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.