diff options
author | George Mount <mount@google.com> | 2012-06-06 16:21:59 -0700 |
---|---|---|
committer | George Mount <mount@google.com> | 2012-06-06 16:21:59 -0700 |
commit | 081da0053e8bcb127c87e442eaa25628732bbe67 (patch) | |
tree | 8da9b73e7e3b1b93c0989a59e698793905016a16 /Source/WebKit/android/jni/WebViewCore.cpp | |
parent | 581fa19e4b324576746089444574824363ed460c (diff) | |
download | external_webkit-081da0053e8bcb127c87e442eaa25628732bbe67.zip external_webkit-081da0053e8bcb127c87e442eaa25628732bbe67.tar.gz external_webkit-081da0053e8bcb127c87e442eaa25628732bbe67.tar.bz2 |
Fixed flipped selection handles.
Bug 6623406
Change-Id: Ib99d308fe97d245bc55ffb2557319efffb6e6e4f
Diffstat (limited to 'Source/WebKit/android/jni/WebViewCore.cpp')
-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; |