summaryrefslogtreecommitdiffstats
path: root/WebKit
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit')
-rw-r--r--WebKit/android/jni/WebViewCore.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/WebKit/android/jni/WebViewCore.cpp b/WebKit/android/jni/WebViewCore.cpp
index 619ac10..126a3fb 100644
--- a/WebKit/android/jni/WebViewCore.cpp
+++ b/WebKit/android/jni/WebViewCore.cpp
@@ -1308,7 +1308,7 @@ void WebViewCore::revealSelection()
WebCore::Frame* focusedFrame = focus->document()->frame();
WebFrame* webFrame = WebFrame::getWebFrame(focusedFrame);
webFrame->setUserInitiatedAction(true);
- focusedFrame->revealSelection();
+ focusedFrame->selection()->revealSelection();
webFrame->setUserInitiatedAction(false);
}
@@ -1886,7 +1886,7 @@ void WebViewCore::setSelection(int start, int end)
|| !static_cast<WebCore::HTMLInputElement*>(focus)->isPasswordField()) {
WebFrame* webFrame = WebFrame::getWebFrame(focusedFrame);
webFrame->setUserInitiatedAction(true);
- focusedFrame->revealSelection();
+ focusedFrame->selection()->revealSelection();
webFrame->setUserInitiatedAction(false);
}
}