diff options
| author | Cary Clark <cary@android.com> | 2010-05-20 13:34:36 -0400 |
|---|---|---|
| committer | Cary Clark <cary@android.com> | 2010-05-21 13:37:30 -0400 |
| commit | 0df9dc35976c248d3f486a51e719d54cb02d7351 (patch) | |
| tree | bf3fd97ccba6f43294a7ae04228ecd97289dbd94 /WebKit/android/jni/WebHistory.cpp | |
| parent | c9aacd00d106d418276e0cacdaa82d2c51f90e66 (diff) | |
| download | external_webkit-0df9dc35976c248d3f486a51e719d54cb02d7351.zip external_webkit-0df9dc35976c248d3f486a51e719d54cb02d7351.tar.gz external_webkit-0df9dc35976c248d3f486a51e719d54cb02d7351.tar.bz2 | |
reverse RTL characters in copy
Text is copied from the picture in visual left-to-right order.
Reverse right-to-left substrings before returning the result.
This algorithm for reversal is also used by webkit to draw
text, and has the same limitations.
This fixes text pasted into the title bar, but does not work
correctly for text pasted into an input field -- LTR text is
placed incorrectly -- but that's another bug.
Change-Id: I4709b74e32495d4b77d33910ac8da34d4a88edd0
http://b/2525085
Diffstat (limited to 'WebKit/android/jni/WebHistory.cpp')
0 files changed, 0 insertions, 0 deletions
