From 0df9dc35976c248d3f486a51e719d54cb02d7351 Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Thu, 20 May 2010 13:34:36 -0400 Subject: 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 --- WebKit/android/nav/SelectText.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'WebKit/android/nav/SelectText.h') diff --git a/WebKit/android/nav/SelectText.h b/WebKit/android/nav/SelectText.h index 8174046..2e17a74 100644 --- a/WebKit/android/nav/SelectText.h +++ b/WebKit/android/nav/SelectText.h @@ -81,4 +81,10 @@ private: } +namespace WebCore { + +void ReverseBidi(UChar* chars, int len); + +} + #endif -- cgit v1.1