diff options
author | George Mount <mount@google.com> | 2012-06-07 11:06:11 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-06-07 11:06:11 -0700 |
commit | e4c8dce0e826e5be4503755f8c7332bdb82804ba (patch) | |
tree | ddd8be83b7e462fcb76c7db04db3747868d43e41 /Source/WebKit/android | |
parent | 5a5b34d84738ce55905f982e5afe19e5f7d4c204 (diff) | |
parent | 081da0053e8bcb127c87e442eaa25628732bbe67 (diff) | |
download | external_webkit-e4c8dce0e826e5be4503755f8c7332bdb82804ba.zip external_webkit-e4c8dce0e826e5be4503755f8c7332bdb82804ba.tar.gz external_webkit-e4c8dce0e826e5be4503755f8c7332bdb82804ba.tar.bz2 |
Merge "Fixed flipped selection handles."
Diffstat (limited to 'Source/WebKit/android')
-rw-r--r-- | Source/WebKit/android/jni/WebViewCore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WebKit/android/jni/WebViewCore.cpp b/Source/WebKit/android/jni/WebViewCore.cpp index c0766e4..9ef20f1 100644 --- a/Source/WebKit/android/jni/WebViewCore.cpp +++ b/Source/WebKit/android/jni/WebViewCore.cpp @@ -1635,7 +1635,7 @@ SelectText* WebViewCore::createSelectText(const VisibleSelection& selection) selection.affinity()); } else { bool isBaseLtr = isLtr(base); - bool isBaseStart = selection.base() == selection.start(); + bool isBaseStart = comparePositions(base, extent) <= 0; int baseOffset = isBaseLtr ? 0 : -1; SelectText::HandleType baseHandleType = (isBaseLtr == isBaseStart) ? SelectText::LeftHandle : SelectText::RightHandle; |