diff options
Diffstat (limited to 'Source')
-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; |