diff options
| author | Leon Scroggins <scroggo@google.com> | 2010-01-12 12:31:29 -0800 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2010-01-12 12:31:29 -0800 |
| commit | b92d07ec6c20d646df8d5f050a0a7e7f51c33d2b (patch) | |
| tree | ee75889bc0c990fbc59b6f8c15608b66be7c2bfe /WebKit/android | |
| parent | c4c0128707c7c8818db4a0922fdd8a05d0ca55e6 (diff) | |
| parent | 4843cf010e538098e485802576b5a16d7f5cb5f1 (diff) | |
| download | external_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.cpp | 4 |
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(¤tFrame); - 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(¤tFrame); - if (!current) + if (!current || !current->isTextInput()) // Error case. No cursor and no focus. return FAILURE; } |
