diff options
| author | Leon Scroggins <scroggo@google.com> | 2010-01-12 12:17:31 -0800 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2010-01-12 12:17:31 -0800 |
| commit | 4843cf010e538098e485802576b5a16d7f5cb5f1 (patch) | |
| tree | ab370e7fb05589a4153f8c8c2bb0a11b1b1d8953 | |
| parent | ab89d1aa666d00b6334b44c4300a23683617e402 (diff) | |
| parent | 9fb6b3c382612e4284ca9bd38930ab94053b8888 (diff) | |
| download | external_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.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; } |
