summaryrefslogtreecommitdiffstats
path: root/WebKit/android/nav/CachedRoot.cpp
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2010-02-08 11:34:36 -0500
committerLeon Scroggins <scroggo@google.com>2010-02-09 10:31:15 -0500
commita2aaeda3cab40ff823fc40ebff51b828d1a9bc1c (patch)
tree0d206af9ea6c9a201c1ac1126265a944710e1a33 /WebKit/android/nav/CachedRoot.cpp
parent18a7eb20d5f2c5ff04fc2bc74824ff92de2cb0a2 (diff)
downloadexternal_webkit-a2aaeda3cab40ff823fc40ebff51b828d1a9bc1c.zip
external_webkit-a2aaeda3cab40ff823fc40ebff51b828d1a9bc1c.tar.gz
external_webkit-a2aaeda3cab40ff823fc40ebff51b828d1a9bc1c.tar.bz2
Remove code which retrieves the action associated with a textfield.
This code was written because we previously only had one action button on the IME for textfields. Now that textfields can always have a next button, we no longer need it.
Diffstat (limited to 'WebKit/android/nav/CachedRoot.cpp')
-rw-r--r--WebKit/android/nav/CachedRoot.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/WebKit/android/nav/CachedRoot.cpp b/WebKit/android/nav/CachedRoot.cpp
index 5805e5f..54e0c15 100644
--- a/WebKit/android/nav/CachedRoot.cpp
+++ b/WebKit/android/nav/CachedRoot.cpp
@@ -756,38 +756,6 @@ bool CachedRoot::checkRings(const WTF::Vector<WebCore::IntRect>& rings,
return ringCheck.success();
}
-CachedRoot::ImeAction CachedRoot::currentTextFieldAction() const
-{
- const CachedFrame* currentFrame;
- const CachedNode* current = currentCursor(&currentFrame);
- 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 || !current->isTextInput())
- // Error case. No cursor and no focus.
- return FAILURE;
- }
- const CachedNode* firstTextfield = nextTextField(0, 0, false);
- if (!firstTextfield) {
- // Error case. There are no textfields in this tree.
- return FAILURE;
- }
- // Now find the next textfield/area starting with the cursor
- const CachedFrame* potentialFrame;
- const CachedNode* potentialNext
- = currentFrame->nextTextField(current, &potentialFrame, true);
- if (potentialNext && currentFrame->textInput(current)->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
- // the last one. Make it GO to allow a submit
- return GO;
-}
-
const CachedNode* CachedRoot::findAt(const WebCore::IntRect& rect,
const CachedFrame** framePtr, int* x, int* y, bool checkForHidden) const
{