diff options
author | George Mount <mount@google.com> | 2012-05-09 11:36:51 -0700 |
---|---|---|
committer | George Mount <mount@google.com> | 2012-05-14 11:24:49 -0700 |
commit | 406da428774aa12dbabb663814e0558942765133 (patch) | |
tree | 93b8f7d4f6daf1f26f159d22b920b868f3ebec03 /Source/WebKit/android/nav/SelectText.cpp | |
parent | 768f585255d1754fce9009daa7c68eab4e1fc7d1 (diff) | |
download | external_webkit-406da428774aa12dbabb663814e0558942765133.zip external_webkit-406da428774aa12dbabb663814e0558942765133.tar.gz external_webkit-406da428774aa12dbabb663814e0558942765133.tar.bz2 |
Change selection to work with left/right instead of base/extent.
Bug 5859620
Use the LTR/RTL content of the text selection to determine
which handle is left and which is right. This simplifies
text selection logic slightly and helps make RTL text
selection handles work properly.
Framework Change: Ib88ed2327182ba5b47b3e41584cbe944d05c8ada
Change-Id: I3362c5034ce08ce1517a86882c13b78aff35fe3f
Diffstat (limited to 'Source/WebKit/android/nav/SelectText.cpp')
-rw-r--r-- | Source/WebKit/android/nav/SelectText.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Source/WebKit/android/nav/SelectText.cpp b/Source/WebKit/android/nav/SelectText.cpp index 22c67bc..7ce32c3 100644 --- a/Source/WebKit/android/nav/SelectText.cpp +++ b/Source/WebKit/android/nav/SelectText.cpp @@ -144,17 +144,3 @@ void ReverseBidi(UChar* chars, int len) { } -namespace android { - -SelectText::HandleId SelectText::mapId(HandleId id) -{ - if (id == StartHandle || id == EndHandle) - return id; - if (isBaseFirst()) - return (HandleId) (id - 2); - if (id == BaseHandle) - return EndHandle; - return StartHandle; -} - -} |