diff options
author | Cary Clark <cary@android.com> | 2010-07-19 11:52:30 -0400 |
---|---|---|
committer | Cary Clark <cary@android.com> | 2010-07-21 08:33:13 -0400 |
commit | 42273f235d52ec2fd9b529d5c2db08187d4eb6c8 (patch) | |
tree | a7a6bab7d4241d585acd3719564635d2f239d6c1 /JavaScriptCore/wtf/StringExtras.h | |
parent | 4c2ecd9da16e679f4adab1e95d711db78591c1e5 (diff) | |
download | external_webkit-42273f235d52ec2fd9b529d5c2db08187d4eb6c8.zip external_webkit-42273f235d52ec2fd9b529d5c2db08187d4eb6c8.tar.gz external_webkit-42273f235d52ec2fd9b529d5c2db08187d4eb6c8.tar.bz2 |
select text out of order
When the selected text visual order doesn't match the picture
order, the text is selected spacially. The rectangle described
by the start and end points limits what text is selected.
This can fail when the rectangle described is too narrow to
enclose all the lines between the top and bottom. This change
extends the lines by including the text adjacent to the start
and end when computing the limit bounds.
And:
- Refactor the code so that drawing the region and selecting
the text can share this logic.
- Add slashes as characters that prevent inserting spaces at
the ends of lines. (ASCII characters space, dash, slash, and
backslash cause lines to wrap.)
- Narrow the error term for detecting spaces. The 1/2 value
before inserted spaces incorrectly.
Change-Id: I645f38dc246c61b1bc7c94e61553e5e6e36e3f85
http://b/2817635
Diffstat (limited to 'JavaScriptCore/wtf/StringExtras.h')
0 files changed, 0 insertions, 0 deletions