summaryrefslogtreecommitdiffstats
path: root/WebKit/android
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2010-01-12 12:31:29 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2010-01-12 12:31:29 -0800
commitb92d07ec6c20d646df8d5f050a0a7e7f51c33d2b (patch)
treeee75889bc0c990fbc59b6f8c15608b66be7c2bfe /WebKit/android
parentc4c0128707c7c8818db4a0922fdd8a05d0ca55e6 (diff)
parent4843cf010e538098e485802576b5a16d7f5cb5f1 (diff)
downloadexternal_webkit-b92d07ec6c20d646df8d5f050a0a7e7f51c33d2b.zip
external_webkit-b92d07ec6c20d646df8d5f050a0a7e7f51c33d2b.tar.gz
external_webkit-b92d07ec6c20d646df8d5f050a0a7e7f51c33d2b.tar.bz2
am 4843cf01: am 9fb6b3c3: Ensure that the current textfield is actually a textfield before treating it like one.
Merge commit '4843cf010e538098e485802576b5a16d7f5cb5f1' * commit '4843cf010e538098e485802576b5a16d7f5cb5f1': Ensure that the current textfield is actually a textfield before treating it like one.
Diffstat (limited to 'WebKit/android')
-rw-r--r--WebKit/android/nav/CachedRoot.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/WebKit/android/nav/CachedRoot.cpp b/WebKit/android/nav/CachedRoot.cpp
index e783eae..d9669bd 100644
--- a/WebKit/android/nav/CachedRoot.cpp
+++ b/WebKit/android/nav/CachedRoot.cpp
@@ -760,11 +760,11 @@ CachedRoot::ImeAction CachedRoot::currentTextFieldAction() const
{
const CachedFrame* currentFrame;
const CachedNode* current = currentCursor(&currentFrame);
- if (!current) {
+ if (!current || !current->isTextInput()) {
// Although the cursor is not on a textfield, a textfield may have
// focus. Find the action for that textfield.
current = currentFocus(&currentFrame);
- if (!current)
+ if (!current || !current->isTextInput())
// Error case. No cursor and no focus.
return FAILURE;
}