summaryrefslogtreecommitdiffstats
path: root/WebKit/android/nav/CachedRoot.cpp
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2009-12-10 13:33:40 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2009-12-10 13:33:40 -0800
commit1f39d2d9fa8ad17be2edeb570a625ed331f5a8f1 (patch)
tree8ad5b9878ce70cd2cd644cf49b21f9b930a6c1ed /WebKit/android/nav/CachedRoot.cpp
parentcfd8cdfd5146057393cae8ffe65d27b903d9f62d (diff)
parent3b242d089e9d96995ad22fb2ed76fa1a9533eb64 (diff)
downloadexternal_webkit-1f39d2d9fa8ad17be2edeb570a625ed331f5a8f1.zip
external_webkit-1f39d2d9fa8ad17be2edeb570a625ed331f5a8f1.tar.gz
external_webkit-1f39d2d9fa8ad17be2edeb570a625ed331f5a8f1.tar.bz2
am 3b242d08: am 91a3bec8: Show "Go" for the last textfield in a form.
Merge commit '3b242d089e9d96995ad22fb2ed76fa1a9533eb64' * commit '3b242d089e9d96995ad22fb2ed76fa1a9533eb64': Show "Go" for the last textfield in a form.
Diffstat (limited to 'WebKit/android/nav/CachedRoot.cpp')
-rw-r--r--WebKit/android/nav/CachedRoot.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/WebKit/android/nav/CachedRoot.cpp b/WebKit/android/nav/CachedRoot.cpp
index 0011f06..2354ebc 100644
--- a/WebKit/android/nav/CachedRoot.cpp
+++ b/WebKit/android/nav/CachedRoot.cpp
@@ -771,9 +771,13 @@ CachedRoot::ImeAction CachedRoot::cursorTextFieldAction() const
return FAILURE;
}
// Now find the next textfield/area starting with the cursor
- if (cursorFrame->nextTextField(cursor, 0, true)) {
- // There is a textfield/area after the cursor, so the textfield under
- // the cursor should have the NEXT action
+ const CachedFrame* potentialFrame;
+ const CachedNode* potentialNext
+ = cursorFrame->nextTextField(cursor, &potentialFrame, true);
+ if (potentialNext && cursorFrame->textInput(cursor)->formPointer()
+ == potentialFrame->textInput(potentialNext)->formPointer()) {
+ // There is a textfield/area after the cursor in the same form,
+ // so the textfield under the cursor should have the NEXT action
return NEXT;
}
// If this line is reached, we know that the textfield under the cursor is