summaryrefslogtreecommitdiffstats
path: root/WebKit/android/jni/WebCoreFrameBridge.cpp
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2010-08-13 17:07:58 -0400
committerLeon Scroggins <scroggo@google.com>2010-08-18 14:55:08 -0400
commit5fae6ab5a106cb38cb02978e2ab768de81a2cf41 (patch)
tree471de48e3b13cab7f0ccec78ff9ffcb0dd8607de /WebKit/android/jni/WebCoreFrameBridge.cpp
parent218fd5c9321bfa0033ab86955fe22858fcc262fb (diff)
downloadexternal_webkit-5fae6ab5a106cb38cb02978e2ab768de81a2cf41.zip
external_webkit-5fae6ab5a106cb38cb02978e2ab768de81a2cf41.tar.gz
external_webkit-5fae6ab5a106cb38cb02978e2ab768de81a2cf41.tar.bz2
Remove calls to change the state of the focus controller.
Bug: 2582455 Never modify the focused state of the focus controller. A corresponding java change make the active state get changed only when the webview gains/loses focus. Change-Id: I6f17f82c772ea4410c0209bf57d251c9bd384e6c
Diffstat (limited to 'WebKit/android/jni/WebCoreFrameBridge.cpp')
-rw-r--r--WebKit/android/jni/WebCoreFrameBridge.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/WebKit/android/jni/WebCoreFrameBridge.cpp b/WebKit/android/jni/WebCoreFrameBridge.cpp
index 868233a..a868260 100644
--- a/WebKit/android/jni/WebCoreFrameBridge.cpp
+++ b/WebKit/android/jni/WebCoreFrameBridge.cpp
@@ -42,6 +42,7 @@
#include "DragClientAndroid.h"
#include "EditorClientAndroid.h"
#include "Element.h"
+#include "FocusController.h"
#include "Font.h"
#include "FormState.h"
#include "Frame.h"
@@ -940,6 +941,7 @@ static void CreateFrame(JNIEnv* env, jobject obj, jobject javaview, jobject jAss
// Set the frame to active to turn on keyboard focus.
frame->init();
frame->selection()->setFocused(true);
+ frame->page()->focusController()->setFocused(true);
deviceMotionC->setWebViewCore(webViewCore);
deviceOrientationC->setWebViewCore(webViewCore);