summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2010-01-12 12:17:31 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2010-01-12 12:17:31 -0800
commit4843cf010e538098e485802576b5a16d7f5cb5f1 (patch)
treeab370e7fb05589a4153f8c8c2bb0a11b1b1d8953
parentab89d1aa666d00b6334b44c4300a23683617e402 (diff)
parent9fb6b3c382612e4284ca9bd38930ab94053b8888 (diff)
downloadexternal_webkit-4843cf010e538098e485802576b5a16d7f5cb5f1.zip
external_webkit-4843cf010e538098e485802576b5a16d7f5cb5f1.tar.gz
external_webkit-4843cf010e538098e485802576b5a16d7f5cb5f1.tar.bz2
am 9fb6b3c3: Ensure that the current textfield is actually a textfield before treating it like one.
Merge commit '9fb6b3c382612e4284ca9bd38930ab94053b8888' into eclair-mr2-plus-aosp * commit '9fb6b3c382612e4284ca9bd38930ab94053b8888': Ensure that the current textfield is actually a textfield before treating it like one.
-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;
}