commit | 48b8ef3c6d0addb97d0efe9d7f1a4d93f7cb0aee | [log] [tgz] |
---|---|---|
author | Tima Vaisburd <[email protected]> | Thu Aug 10 00:58:41 2017 |
committer | Commit Bot <[email protected]> | Thu Aug 10 00:58:41 2017 |
tree | dfc26b6c59831ed768b24a59231b61a2e9419ca2 | |
parent | 3caef8c381ab92d5c3bd5894378a7bbb6f9a02af [diff] |
Check the validity of selection range for SmartText selection It is possible that by the time the surrounding text request reaches the Renderer the selection range becomes empty (e.g. we have an input caret). The empty selection range is a valid situation for surrounding text algorithm which returns a text around the input caret, but invalid for Android TextClassifier. This CL checks the indices of the selection in the surrounding text responce from Blink and treats an empty or invalid range the same way as an empty text, i.e. bypasses classification. BUG=751397 Change-Id: I3646a16d701e04627e4729f5226850d2b83993b5 Reviewed-on: https://chromium-review.googlesource.com/601256 Commit-Queue: Tima Vaisburd <[email protected]> Reviewed-by: Bo <[email protected]> Reviewed-by: Pedro Amaral <[email protected]> Cr-Commit-Position: refs/heads/master@{#493201}
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.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .