summaryrefslogtreecommitdiffstats
path: root/WebKit/android/nav/CachedRoot.h
diff options
context:
space:
mode:
authorCary Clark <cary@android.com>2010-04-21 14:18:24 -0400
committerCary Clark <cary@android.com>2010-04-22 09:12:45 -0400
commit65966ae193adfef8d40419ad9c11515b0e56f257 (patch)
treebb11931d09d019467ef946098a88873d8674cc6b /WebKit/android/nav/CachedRoot.h
parent54070f490711d3ec763c006c9b84adf55d32f0a2 (diff)
downloadexternal_webkit-65966ae193adfef8d40419ad9c11515b0e56f257.zip
external_webkit-65966ae193adfef8d40419ad9c11515b0e56f257.tar.gz
external_webkit-65966ae193adfef8d40419ad9c11515b0e56f257.tar.bz2
nextTextField may walk off the end or try invalid frames
Rewrote nextTextField() to check range and frame, and to more resemble other node walkers. Caller no longer passes uninitialized frame in focused case, and looks at parent frames after the target node. Change-Id: I7ea9dffb75d28bdd9d71d83921058feca6baf928 http://b/2607250
Diffstat (limited to 'WebKit/android/nav/CachedRoot.h')
-rw-r--r--WebKit/android/nav/CachedRoot.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/WebKit/android/nav/CachedRoot.h b/WebKit/android/nav/CachedRoot.h
index 735f23b..6e9fff0 100644
--- a/WebKit/android/nav/CachedRoot.h
+++ b/WebKit/android/nav/CachedRoot.h
@@ -75,6 +75,14 @@ public:
WebCore::String imageURI(int x, int y) const;
bool maskIfHidden(BestData* ) const;
const CachedNode* moveCursor(Direction , const CachedFrame** , WebCore::IntPoint* scroll);
+ /**
+ * Find the next textfield/textarea
+ * @param start The textfield/textarea to search from.
+ * @param framePtr If non-zero, returns CachedFrame* containing result.
+ * @return CachedNode* Next textfield/textarea or null (0) if none.
+ */
+ const CachedNode* nextTextField(const CachedNode* start,
+ const CachedFrame** framePtr) const;
SkPicture* pictureAt(int x, int y) const;
void reset();
CachedHistory* rootHistory() const { return mHistory; }