summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/android
diff options
context:
space:
mode:
authorGeorge Mount <mount@google.com>2012-06-07 11:06:11 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-06-07 11:06:11 -0700
commite4c8dce0e826e5be4503755f8c7332bdb82804ba (patch)
treeddd8be83b7e462fcb76c7db04db3747868d43e41 /Source/WebKit/android
parent5a5b34d84738ce55905f982e5afe19e5f7d4c204 (diff)
parent081da0053e8bcb127c87e442eaa25628732bbe67 (diff)
downloadexternal_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.cpp2
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;