summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/android/nav/WebView.cpp
diff options
context:
space:
mode:
authorGeorge Mount <mount@google.com>2012-05-09 11:36:51 -0700
committerGeorge Mount <mount@google.com>2012-05-14 11:24:49 -0700
commit406da428774aa12dbabb663814e0558942765133 (patch)
tree93b8f7d4f6daf1f26f159d22b920b868f3ebec03 /Source/WebKit/android/nav/WebView.cpp
parent768f585255d1754fce9009daa7c68eab4e1fc7d1 (diff)
downloadexternal_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/WebView.cpp')
-rw-r--r--Source/WebKit/android/nav/WebView.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/Source/WebKit/android/nav/WebView.cpp b/Source/WebKit/android/nav/WebView.cpp
index a78392b..09e808b 100644
--- a/Source/WebKit/android/nav/WebView.cpp
+++ b/Source/WebKit/android/nav/WebView.cpp
@@ -1199,14 +1199,6 @@ static jint nativeGetHandleLayerId(JNIEnv *env, jobject obj, jint nativeView,
return layerId;
}
-static jboolean nativeIsBaseFirst(JNIEnv *env, jobject obj, jint nativeView)
-{
- WebView* webview = reinterpret_cast<WebView*>(nativeView);
- SelectText* select = static_cast<SelectText*>(
- webview->getDrawExtra(WebView::DrawExtrasSelection));
- return select ? select->isBaseFirst() : false;
-}
-
static void nativeMapLayerRect(JNIEnv *env, jobject obj, jint nativeView,
jint layerId, jobject rect)
{
@@ -1298,8 +1290,6 @@ static JNINativeMethod gJavaWebViewMethods[] = {
(void*) nativeSetTextSelection },
{ "nativeGetHandleLayerId", "(IILandroid/graphics/Point;Landroid/webkit/QuadF;)I",
(void*) nativeGetHandleLayerId },
- { "nativeIsBaseFirst", "(I)Z",
- (void*) nativeIsBaseFirst },
{ "nativeMapLayerRect", "(IILandroid/graphics/Rect;)V",
(void*) nativeMapLayerRect },
{ "nativeSetHwAccelerated", "(IZ)I",