From 5718420083b3f3f3e275bd7cc69477634b8f6d3f Mon Sep 17 00:00:00 2001 From: John Reck Date: Wed, 19 Oct 2011 18:10:34 -0700 Subject: [PATCH] Force a navcache update before requesting keyboard Bug: 5453541 Change-Id: I209d96d6cd567f7d548549e3e9e5004df045226b --- Source/WebKit/android/jni/WebViewCore.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/WebKit/android/jni/WebViewCore.cpp b/Source/WebKit/android/jni/WebViewCore.cpp index f35f7686a..d7a61aac2 100644 --- a/Source/WebKit/android/jni/WebViewCore.cpp +++ b/Source/WebKit/android/jni/WebViewCore.cpp @@ -3367,6 +3367,10 @@ bool WebViewCore::handleMouseClick(WebCore::Frame* framePtr, WebCore::Node* node if (!fake) { RenderTextControl* rtc = static_cast (renderer); + // Force an update of the navcache as this will fire off a + // message to WebView that *must* have an updated focus. + m_frameCacheOutOfDate = true; + updateFrameCache(); requestKeyboardWithSelection(focusNode, rtc->selectionStart(), rtc->selectionEnd()); } -- 2.11.0